Form: Do not set the requiredSuffix as option but use its virtual setter

This removes the invalid attribute on each <label> tag once the
FormDescriptions decorator removes the suffix.

refs #7947
This commit is contained in:
Johannes Meyer 2015-03-05 15:13:38 +01:00
parent b8eedc21bb
commit b9811f8590
1 changed files with 1 additions and 1 deletions

View File

@ -743,7 +743,7 @@ class Form extends Zend_Form
if (($cue = $this->getRequiredCue()) !== null && ($label = $element->getDecorator('label')) !== false) {
$element->setLabel($this->getView()->escape($element->getLabel()));
$label->setOption('escape', false);
$label->setOption('requiredSuffix', sprintf(' <span aria-hidden="true">%s</span>', $cue));
$label->setRequiredSuffix(sprintf(' <span aria-hidden="true">%s</span>', $cue));
}
}