Home » HTML » HTML_QuickForm » Bug #5455
isSubmitted returns TRUE even for a fresh empty form
Details
| Submitted | 2005-09-19 15:32 UTC |
|---|---|
| From | bugs dot pear at gage dot fr |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 4.3.11 |
| OS | Linux/WindowsXP |
| Roadmaps | (Not assigned) |
Comments
[2005-09-19 15:32 UTC] bugs dot pear at gage dot fr
Description:
------------
If you create an empty from, the isSubmitted() method returns TRUE.
[2005-09-19 15:35 UTC] bugs dot pear at gage dot fr
As a precision, I had $_POST not empty, that's why $this->_flagSubmitted is set to TRUE.
[2005-09-19 15:48 UTC] bugs dot pear at gage dot fr
It seems to be related to #5251
[2005-09-19 15:51 UTC] bugs dot pear at gage dot fr
I think that the method to set _flagSubmitted :
$this->_flagSubmitted = count($this->_submitValues) > 0 || count($this->_submitFiles) > 0;
shoul be reviewed to handle both multiple forms and new form with $_POST not empty.