Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.10

Request #1547 SetDefaults doesn't accept filters
Submitted: 2004-06-02 20:28 UTC
From: tdr32 at cs dot byu dot edu Assigned: avb
Status: Closed Package: HTML_QuickForm_Controller
PHP Version: 4.2.2 OS: RedHat 9
Roadmaps: (Not assigned)    
Subscription  


 [2004-06-02 20:28 UTC] tdr32 at cs dot byu dot edu
Description: ------------ Will trying to port my code from HTML_QuickForm to HTML_QuickForm_Controller, I noticed that my setDefaults filter was not being used. By inspection of the actual code for the Controller.php, the setDefaults doesn't accept a filter variable. I have fixed it in my own version by just adding in code from HTML_QuickForm to give HTML_QuickForm_Controller the ability. Reproduce code: --------------- // In Index.php $form->get_default_values(); // in form class function get_default_values() { $controller->setDefaults($this->default_values, array(&$this, 'filter_defaults')); } function filter_defaults($value) { // programming to filter the values sent return $value; } Expected result: ---------------- Well, it should just go use the filter_defaults() function. Actual result: -------------- It doesn't use the function

Comments

 [2004-06-09 13:46 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-07-11 22:10 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-09-15 11:44 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-10-01 09:53 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!