Issues

ZF-9689: Zend_Form_Decorator_ViewHelper does not forward listseparator to viewhelper

Description

The Zend_Form_Decorator_ViewHelper does not forward the $listsep option to Radio or MultiCheckbox fields.

On line 246 it reads: $elementContent = $view->$helper($name, $value, $attribs, $element->options);

which should be: $listsep = $attribs['listsep']; unset($attribs['listsep']);

$elementContent = $view->$helper($name, $value, $attribs, $element->options, $listsep);

The listsep is gathered in $attribs in Zend_Form_Decorator_ViewHelper::getElementAttribs() on lines 156-160, but nothing is done with it. Instead it just ends up as an attribute in the tag.

Comments

Patch and unit tests added.

Fixed in trunk (1.12.0): r24873