ZF-10671: Zend_Dojo_View_Helper_Form passes incorrect $content onto parent constructor
Description
Per documentation at http://framework.zend.com/manual/en/…
"If $content is present and not a boolean FALSE, then that content is rendered within the start and close form tags; if $content is a boolean FALSE (the default), only the opening form tag is generated."
This works fine for the standard form view helper but when Dojo is enabled $content is set to '' which prevents only the opening tag from being created. The culprit is in Zend_Dojo_View_Helper_Form.php in function form($id, $attribs = null, $content = false).
if (false === $content) {
$content = '';
}
Comments
Posted by Robert Basic (robertbasic) on 2011-04-23T17:14:27.000+0000
Closing as a duplicate of ZF-5814