Zend Framework

Captcha label incorrectly paired with its input field after calling $form->setElementsBelongTo()

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.5
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Captcha, Zend_Form
  • Labels:
    None

Description

After creating form and calling setElementsBelongTo, captcha label is rendered with invalid "for" attribute:

$form->setElementsBelongTo('comment');
$form->addElement('captcha', 'captcha', array( ... ));

<dt id="captcha-label"><label for="comment[captcha]-input" class="required">Type text from image:</label></dt>

Activity

Hide
Stanislav Malyshev added a comment -

fixed in trunk, thanks

Show
Stanislav Malyshev added a comment - fixed in trunk, thanks

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: