PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #8558

hiddenselect error when using loadQuery method

Details

Submitted2006-08-25 14:30 UTC
Fromleandrosuarez at gmail dot com
StatusDuplicate
PackageHTML_QuickForm
PHP Version4.3.8
OSMandrake 10.1
Roadmaps(Not assigned)

Comments

[2006-08-25 14:30 UTC] leandrosuarez at gmail dot com

Description:
------------
Works ok with select element but dont with hiddenselect

Actually work with a select element with property display:none

Test script:
---------------
h =& $form->addElement('hiddenselect');
h->loadQuery(&$db, $query, 'TEXT_FIELD', 'VALUE_FIELD');

Expected result:
----------------
No warnings

Actual result:
--------------
Warning: Invalid argument supplied for foreach() in /usr/share/pear/HTML/QuickForm/hiddenselect.php on line 79