Home » HTML » HTML_QuickForm_Controller » Bug #4195
updateAttributes for new target (form action)
Details
| Submitted | 2005-04-21 11:14 UTC |
|---|---|
| From | thomas at lucas-netz dot de |
| Status | Bogus |
| Package | HTML_QuickForm_Controller |
| PHP Version | 4.3.7 |
| OS | Windows XP |
| Roadmaps | (Not assigned) |
Comments
[2005-04-21 11:14 UTC] thomas at lucas-netz dot de
Description:
------------
When changing the target of a page class, this only affects on the first page.
Reproduce code:
---------------
class PageFirst extends HTML_QuickForm_Page
{
function buildForm()
{
$this->_formBuilt = true;
$this->updateAttributes(array('action' => "index.php?idcat=35"));
...
class PageSecond extends HTML_QuickForm_Page
{
function buildForm()
{
$this->_formBuilt = true;
$this->updateAttributes(array('action' => "index.php?idcat=35"));
Expected result:
----------------
Content of page attributes:
Array ( [action] => index.php?idcat=35 [method] => post [name] => page1 [id] => page1 )
Actual result:
--------------
Array ( [action] => /cms/cms/index.php [method] => post [name] => page1 [id] => page1 )