PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #5455

isSubmitted returns TRUE even for a fresh empty form

Details

Submitted2005-09-19 15:32 UTC
Frombugs dot pear at gage dot fr
StatusBogus
PackageHTML_QuickForm
PHP Version4.3.11
OSLinux/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.