Home » HTML » HTML_QuickForm » Bug #259
Missing implementation setValue for file
Details
| Submitted | 2003-11-16 17:57 UTC |
|---|---|
| From | rinse at solcon dot nl |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 4.3.3 |
| OS | Linux 2.4.18 |
| Roadmaps | (Not assigned) |
Comments
[2003-11-16 17:57 UTC] rinse at solcon dot nl
Description:
------------
The problem is when you create a form with a file as element type you can't use the setValue() function. This function simply returns null. I changed the function to simply set the $this->_value to $value. Now I can simply set the values to the form as a default like all other form elements.
Reproduce code:
---------------
function setValue($value)
{
//return null;
$this->_value = $value;
} //end func setValue
[2003-11-16 18:38 UTC] mansion at php dot net
Why do you need to set the value of a file element ?
How do you expect it to be rendered by QuickForm ?