Zend Framework

Zend Form Element Captcha Decorator

Details

  • Type: Sub-task Sub-task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.6, 1.9.7, 1.10.0, 1.10.1
  • Fix Version/s: 1.10.6
  • Component/s: Zend_Form
  • Labels:
    None

Description

When decorating the Zend_Captcha Form element, I use this:
$this->captcha->setDecorators(
array( 'Captcha',
'Description',
'Errors',
array(array('data'=>'HtmlTag'), array('tag' => 'td')),
array('Label', array('tag' => 'td')),
array(array('row'=>'HtmlTag'),array('tag'=>'tr'))
));

The problem: the first TD HtmlTag element gets replaced by the last TR HtmlTag (after rendering). I have checked this, by removing the last decorator (the TR HtmlTag)

Issue Links

Activity

Hide
Stanislav Malyshev added a comment -

Not sure how to do this right, reassigning.

Show
Stanislav Malyshev added a comment - Not sure how to do this right, reassigning.
Hide
Christian Albrecht added a comment -

ZF-5867 is similar in that the opener is aiming for a table using Decorators as well.

Show
Christian Albrecht added a comment - ZF-5867 is similar in that the opener is aiming for a table using Decorators as well.
Hide
Christian Albrecht added a comment -

Fixed in r22464 and merged into 1.10 release branch

Show
Christian Albrecht added a comment - Fixed in r22464 and merged into 1.10 release branch

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: