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

Bug #5218 hierselect with third select or more bug
Submitted: 2005-08-27 11:33 UTC
From: naonak at free dot fr Assigned: avb
Status: Closed Package: HTML_QuickForm
PHP Version: Irrelevant OS: xp pro with Firefox
Roadmaps: (Not assigned)    
Subscription  


 [2005-08-27 11:33 UTC] naonak at free dot fr
Description: ------------ With the 3.2.5 release, hierselect with third select or more keep the lastest select populate do while you not "repopulate" it. See the example. Test script: --------------- <?php require_once 'HTML/QuickForm.php'; $form = new HTML_QuickForm('example'); $select1[0] = 'Pop'; $select1[1] = 'Classical'; $select1[2] = 'Funeral doom'; // second select $select2[2][2] = 'Skepticism'; // Create a third select with prices for the cds $select3[2][2][1] = '17.00$'; // Create the Element $sel =& $form->addElement('hierselect', 'cds', 'Choose CD:'); // And add the selection options $sel->setOptions(array($select1, $select2, $select3)); $form->display(); ?>

Comments

 [2005-08-30 10:34 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!
 [2005-08-30 10:56 UTC] naonak at free dot fr
It is not normal behavior in me mind and if that is, it is stupid behavior! It's BUG because not in the other release!
 [2005-08-31 08:15 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!
 [2005-09-05 12:42 UTC] naonak at free dot fr
"HTML standard does not allow <select> tags without at least one option." => If select is empty, let an option to not generate it in this case. What do you thing about this?
 [2006-06-18 11: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!