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:
parent
b8eedc21bb
commit
b9811f8590
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue