Re: Bug in QuickForm hierselect
| From: | Bertrand Mansion | Date: | Sun, 10 Aug 2003 09:15:45 +0000 |
| Subject: | Re: Bug in QuickForm hierselect | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7140@lists.php.net to get a copy of this message | ||
<keith@midnighthax.com> wrote :
> There appears to be a bug in the hierselect element of Quickform. When
> the form is initially displayed it shows the first entry for both of the
> select boxes. However, there is no guarantee that the selected options
> are related. Once one 'onchange' event occurs the two boxes are
> synchronised. Maybe there needs to be a Javascript initialisation
> function?
It's up to you to use setDefaults to set the hierselect values.
This way there's no need for a javascript initialisation (unless you really
want to write one and send it to me...)
Bertrand Mansion
Mamasam