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 #1836

Element date->getFrozenHtml() freezes the element

Details

Submitted2004-07-10 14:06 UTC
Fromdick at inf dot ufsc dot br
Assignedavb
StatusClosed
PackageHTML_QuickForm
PHP Version4.3.3
OSLinux
Roadmaps(Not assigned)

Comments

[2004-07-10 14:06 UTC] dick at inf dot ufsc dot br

Description:
------------
1. Element method HTML_QuickForm_date::getFrozenHtml() returns the right code, but freezes the element, where it shouldn't! ;-)
2. And the method HTML_QuickForm_Date::setPersistantFreeze does not work when not generating the hidden <input>, it always generates the hidden tags.

I have tested exact the same with HTML_QuickForm_input and it works ok.

Reproduce code:
---------------
$form <- Generate some elements
foreach( ... $element's acessed by reference ...) {
Set values for elements from db rows
$element->setPersistantFreeze(false);
$html .= $element->getFrozenHtml();
// a table with element values
}

$form->display();
echo $html

Expected result:
----------------
I wish it to display some input elements in editable state, and bellow a table with values of rows without hidden <input> tags

Actual result:
--------------
Frozen date element (can occur with other elements, i have not tested all) and editable input text

Bellow a table with hidden <input> tags for the html generated from date element on getFronzenHtml() even calling $element->setPersistantFreeze(false);

[2004-09-15 16:45 UTC] martin dot holzhauer at gmail dot com

will an unfreeze() Function added?
i think this is an realy good feature
For Example
Adding Radiobuttons for assking "Are this Data Correct?" when Form ist Freezed