ZF-4635: Allow Zend_Dojo_View_Helper_Dijit to support more types in _prepareDijit()
Description
Currently Zend_Dojo_View_Helper_Dijit::_prepareDijit() has limited support for dijit types as specified by its $type parameter. If an un accounted for $type is specified the method will break as $stripParams is not set to an array.
This improvement provides a simple fix so that the method will continue to work for unknown types and will be required when adding new dijit view helpers in future releases.
--- Dijit.php 2008-10-18 20:21:45.000000000 +0100 +++ Dijit.php.new 2008-10-18 20:23:07.000000000 +0100 @@ -193,6 +193,7 @@ $stripParams = array('id', 'name', 'type'); break; default: + $stripParams = array(); }
foreach ($stripParams as $param) {
Comments
Posted by Daniel Skinner (skina) on 2008-10-18T12:30:17.000+0000
Patch for R12011
Posted by Rob Allen (rob) on 2012-11-20T20:52:37.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.