Re: HTML_Quickform not working with two hierselects
| From: | Alexey Borzov | Date: | Wed, 07 Mar 2007 13:09:16 +0000 |
| Subject: | Re: HTML_Quickform not working with two hierselects | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26760@lists.php.net to get a copy of this message | ||
Hi,
Jose Manuel Zea Ginerÿffffffffffe9s wrote:
I need two hierselects in my HTML_Quickform. One of them has 3 selects and the other two. If I just set one, there´s no problem, but when I set the 2 hierselects, one of them works oks but with the other I get a javascript error: _hs_options is not defined _hs_options['codtipocodsubtipo'] = [ But when I look in the source code _hs_options is defined and its values is: _hs_options['codtipocodsubtipo'] = [ { '0': '', '1': { '14': 'Diafano', '12': 'Piso', '15': 'Chalet' }, '6': { '20': 'En área industrial' } } ]; _hs_defaults['codtipocodsubtipo'] = [0, []]; And if I just define the hierselect that is not working, this works alone perfectly. Can anyone help me please?It's difficult to say anything without seeing the actual PHP code, but looking at the generated JS, I presume you are running PHP 5.2.1? There was already a bug report with similar code: http://pear.php.net/bugs/bug.php?id=10139 The problem is most probably caused by a bug in PHP itself: http://bugs.php.net/bug.php?id=40705