PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm_Controller » Bug #4195

updateAttributes for new target (form action)

Details

Submitted2005-04-21 11:14 UTC
Fromthomas at lucas-netz dot de
StatusBogus
PackageHTML_QuickForm_Controller
PHP Version4.3.7
OSWindows 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 )