diff -r 5e7a0fedabdf -r 877f952ae2bd web/lib/Zend/Dojo/View/Helper/ComboBox.php --- a/web/lib/Zend/Dojo/View/Helper/ComboBox.php Thu Mar 21 17:31:31 2013 +0100 +++ b/web/lib/Zend/Dojo/View/Helper/ComboBox.php Thu Mar 21 19:50:53 2013 +0100 @@ -15,9 +15,9 @@ * @category Zend * @package Zend_Dojo * @subpackage View - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License - * @version $Id: ComboBox.php 20096 2010-01-06 02:05:09Z bkarwin $ + * @version $Id: ComboBox.php 24593 2012-01-05 20:35:02Z matthew $ */ /** Zend_Dojo_View_Helper_Dijit */ @@ -29,7 +29,7 @@ * @uses Zend_Dojo_View_Helper_Dijit * @package Zend_Dojo * @subpackage View - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Dojo_View_Helper_ComboBox extends Zend_Dojo_View_Helper_Dijit @@ -100,6 +100,10 @@ return $html; } + // required for correct type casting in declerative mode + if (isset($params['autocomplete'])) { + $params['autocomplete'] = ($params['autocomplete']) ? 'true' : 'false'; + } // do as normal select $attribs = $this->_prepareDijit($attribs, $params, 'element'); return $this->view->formSelect($id, $value, $attribs, $options);