Home » HTML » HTML_QuickForm_Controller » Bug #2227
extend HTML_QuickForm's $trackSubmit parameter
Details
| Request #2227 | extend HTML_QuickForm's $trackSubmit parameter |
|---|---|
| Submitted | 2004-08-26 22:34 UTC |
| From | doppler at gmail dot com |
| Status | Bogus |
| Package | HTML_QuickForm_Controller |
| PHP Version | Irrelevant |
| 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);