Zend Framework

Fieldset having method and action of form added to it

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5.0
  • Fix Version/s: 1.5.2
  • Component/s: Zend_Form
  • Labels:
    None
  • Fix Version Priority:
    Must Have

Description

Using the following code to add a form:

//Setup the form.
$form = new Zend_Form();
$form->setAction($actionUrl)
->setMethod('post')
->setAttrib('id','addCompany')
->setLegend($title)
->addDecorator(new Zend_Form_Decorator_Fieldset()) //This puts our form in a fieldset.
>setView($this>view)
->addElement('hash', 'no_csrf_foo', array('salt' => 'unique', 'timeout' => 300));

It adds a method and form to the surrounding fieldset. This is obviously not correct and causes it to fail validation.

Apologies if my use of addDecorator is incorrect but it would seem that there should never be these attributes on a fieldset tag.

Thanks
Tom

Issue Links

Activity

Hide
Wil Sinclair added a comment -

Please assess and categorize as necessary.

Show
Wil Sinclair added a comment - Please assess and categorize as necessary.
Hide
Matthew Weier O'Phinney added a comment -

Scheduling for next mini release.

Show
Matthew Weier O'Phinney added a comment - Scheduling for next mini release.
Hide
Matthew Weier O'Phinney added a comment -

Fix committed to trunk and 1.5 release branch as of r9313.

Show
Matthew Weier O'Phinney added a comment - Fix committed to trunk and 1.5 release branch as of r9313.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
30m
Original Estimate - 30 minutes
Remaining:
30m
Remaining Estimate - 30 minutes
Logged:
Not Specified
Time Spent - Not Specified