PEAR is archived and read-only

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

Home » HTML » HTML_QuickForm_Controller » Bug #2227

extend HTML_QuickForm's $trackSubmit parameter

Details

Request #2227extend HTML_QuickForm's $trackSubmit parameter
Submitted2004-08-26 22:34 UTC
Fromdoppler at gmail dot com
StatusBogus
PackageHTML_QuickForm_Controller
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2004-08-26 22:34 UTC] doppler at gmail dot com

Description:
------------
When building multi-page forms modeled off of the 'statemachine.php' example, 'required' messages get rendered on all pages 2-n, even if the page in question has not been submitted (e.g. it's the first time you've seen the page). I could not find a reliable workaround without patching QuickForm_Controller_Page.

I've put a patch in 'reproduce code', rather than the many, many things I tried that all caused this behaviour or broke other functionality.

Reproduce code:
---------------
doppler:/usr/lib/php/HTML/QuickForm doppler$ diff Page.old.php Page.php
61c61
< function HTML_QuickForm_Page($formName, $method = 'post', $target = '_self', $attributes = null)
---
> function HTML_QuickForm_Page($formName, $method = 'post', $target = '_self', $attributes = null, $trackSubmit = null)
63c63
< $this->HTML_QuickForm($formName, $method, '', $target, $attributes);
---
> $this->HTML_QuickForm($formName, $method, '', $target, $attributes, $trackSubmit);