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

Request #19307 cannot chain setValue
Submitted: 2012-02-27 07:44 UTC
From: sak Assigned: avb
Status: Closed Package: HTML_QuickForm2 (version 0.6.1)
PHP Version: 5.3.9 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 20 + 19 = ?

 
 [2012-02-27 07:44 UTC] sak (sergio kessler)
Description: ------------ it would be cool if I can chain the setValue, something like $form->addElement('date', 'new_row_fecha', $date_options) ->setLabel('Fecha:') ->setValue($date_defaults) ->addRule('required', 'Valor requerido') ; right now, that code throws error...

Comments

 [2012-02-27 12:47 UTC] avb (Alexey Borzov)
-Status: Open +Status: Closed -Assigned To: +Assigned To: avb
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.