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

Bug #16816 failure to check array element being set
Submitted: 2009-11-21 00:20 UTC
From: addw Assigned: avb
Status: Closed Package: HTML_QuickForm2 (version 0.3.0)
PHP Version: 5.3.0 OS: linux
Roadmaps: (Not assigned)    
Subscription  


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 : 9 + 1 = ?

 
 [2009-11-21 00:20 UTC] addw (Alain Williams)
Description: ------------ An error message complaining that 'content' is an undefined index. Test script: --------------- This will yeild an error message: $form->addElement('checkbox', 'vegetable[1]', array('value' => 2, 'checked' => 1), array('label' => 'pea')); This will not: $form->addElement('checkbox', 'vegetable[2]', array('value' => 3), array('label' => 'bean', 'content' => 'baked ?'));

Comments

 [2009-11-21 00:21 UTC] addw (Alain Williams)
 [2009-11-21 00:22 UTC] addw (Alain Williams)
I have attached a patch that fixes the problem.
 [2009-11-23 02:11 UTC] avb (Alexey Borzov)
-Status: Open +Status: Closed -Assigned To: +Assigned To: avb
Fixed in SVN, I fixed it at the HTML_QuickForm2_Node level rather than locally.