Home » HTML » HTML_QuickForm » Bug #5748
Default values not removed when removeElement called
Details
| Submitted | 2005-10-21 21:19 UTC |
|---|---|
| From | spam-pear at theverge dot com |
| Status | Wont fix |
| Package | HTML_QuickForm |
| PHP Version | 5.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