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_Template_Flexy » Bug #4005

PHP5.0.2 + HTML_Template_Flexy 1.2.1, form checkbox element not working

Details

Submitted2005-03-30 15:25 UTC
Fromcj at sitemajic dot com
StatusNo Feedback
PackageHTML_Template_Flexy
PHP Version5.0.2
OSGentoo Linux 2004.3
Roadmaps(Not assigned)

Comments

[2005-03-30 15:25 UTC] cj at sitemajic dot com

Description:
------------
Using:

PHP5.0.2
HTML_Template_Flexy 1.2.1

Any $elements['myelement']->setValue(); for checkboxes is not working in 1.2.1, had to downgrade to 1.1.2 to get it to work again.

Reproduce code:
---------------
just create a checkbox element and attempt to set it's value to checked

Expected result:
----------------
have a checkbox selected

Actual result:
--------------
no change in checkbox status, remains unchecked

[2005-05-06 16:40 UTC] brett at mrphp dot com dot au

The same issue is present in PHP 4.3.

[2005-05-06 16:50 UTC] brett at mrphp dot com dot au

Here is a work around:

--[ REPLACE ]--
$elements['my_checkbox']->setValue(1);

--[ WITH ]--
$elements['my_checkbox']->attributes['value'] = 1;