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

Bug #645 buttons with names cause notices with ArraySmarty renderer
Submitted: 2004-01-30 14:40 UTC
From: jeroen at terena dot nl Assigned: ths
Status: No Feedback Package: HTML_QuickForm
PHP Version: 4.3.4 OS: Debian Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-01-30 14:40 UTC] jeroen at terena dot nl
Description: ------------ I encountered a small problem after adding buttons that don't have names. I get notices when I leave the $name argument null Setting names for submit and button elements works fine, but I believe it was always possible to leave these NULL, it is poissble with other renderers and also with the stable ArraySmaryt that came with QF 3.2.1 Reproduce code: --------------- $control[0] =& HTML_QuickForm::createElement('submit', null, 'Submit'); $control[1] =& HTML_QuickForm::createElement('button', null, 'Cancel',array("onClick"=>"location.href='".$_SERVER['PHP_SELF']."'")); $form->addGroup($control,'control',null,' '); It throws me some notices: *When I use names instead of NULL for the button and submit elements it does work. HTH jeroen Expected result: ---------------- No notices Actual result: -------------- *Notice*: Undefined index: keys in */usr/local/share/php/pear/HTML/QuickForm/Renderer/ArraySmarty.php* on line *195* *Notice*: Undefined index: keys in */usr/local/share/php/pear/HTML/QuickForm/Renderer/ArraySmarty.php* on line *222

Comments

 [2004-02-04 16:42 UTC] ths at php dot net
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Unnamed group items (unless radios) are not rendered as subarrays.
 [2004-03-23 15:19 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!