diff -r 5e7a0fedabdf -r 877f952ae2bd web/lib/Zend/Form/Element/MultiCheckbox.php --- a/web/lib/Zend/Form/Element/MultiCheckbox.php Thu Mar 21 17:31:31 2013 +0100 +++ b/web/lib/Zend/Form/Element/MultiCheckbox.php Thu Mar 21 19:50:53 2013 +0100 @@ -15,7 +15,7 @@ * @category Zend * @package Zend_Form * @subpackage Element - * @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 */ @@ -32,9 +32,9 @@ * @category Zend * @package Zend_Form * @subpackage Element - * @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: MultiCheckbox.php 20096 2010-01-06 02:05:09Z bkarwin $ + * @version $Id: MultiCheckbox.php 24963 2012-06-15 14:32:23Z adamlundrigan $ */ class Zend_Form_Element_MultiCheckbox extends Zend_Form_Element_Multi { @@ -49,4 +49,25 @@ * @var bool */ protected $_isArray = true; + + /** + * Load default decorators + * + * @return Zend_Form_Element_MultiCheckbox + */ + public function loadDefaultDecorators() + { + if ($this->loadDefaultDecoratorsIsDisabled()) { + return $this; + } + + parent::loadDefaultDecorators(); + + // Disable 'for' attribute + if (false !== $decorator = $this->getDecorator('label')) { + $decorator->setOption('disableFor', true); + } + + return $this; + } }