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

Bug #2970 hierselect reset problem
Submitted: 2004-12-15 10:24 UTC
From: aharvey at optimiser dot com Assigned: avb
Status: Closed Package: HTML_QuickForm
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2004-12-15 10:24 UTC] aharvey at optimiser dot com
Description: ------------ (Tested using Firefox 1.0 on Linux.) 1. Create a page including the form listed in the reproduce code. 2. Open the page in a browser and change the value of the first select from "one" to "two". Observe that the second list changes to ("c", "d"), as it should. 3. Click the Reset button. 4. Observe that although the first element has reset to "one", the second element retains the ("c", "d") list and hence hasn't reset to "a", its default. Reproduce code: --------------- $first = array('one', 'two'); $second = array(array('a', 'b'), array('c', 'd')); $form = new HTML_QuickForm(); $hier = $form->addElement('hierselect', 'hier', 'Hierselect:'); $hier->setOptions(array($first, $second)); $form->addElement('reset', null, 'Reset'); $form->display(); Expected result: ---------------- The two elements within the hierselect should reset to "one", "a". Actual result: -------------- The two elements reset to "one", "c".

Comments

 [2004-12-28 20:26 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-07-17 19:56 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!