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

Patch for R12011

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.