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

Default values not removed when removeElement called

Details

Submitted2005-10-21 21:19 UTC
Fromspam-pear at theverge dot com
StatusWont fix
PackageHTML_QuickForm
PHP Version5.0.4
Roadmaps(Not assigned)

Comments

[2005-10-21 21:19 UTC] spam-pear at theverge dot com

Description:
------------
Example:
say you want to swap one form element with a new
element. In my case I was changing a date element
to a text element.

Problem:
The current result is the default element from the original
date element is not removed. Which results in the value set by setValue to be removed.

Solutions:
1. QuickForm::removeElement() , remove defaults at same time
2. Make a defaultValues for classes that do not have one