diff --git a/library/Zend/Form/Element/Checkbox.php b/library/Zend/Form/Element/Checkbox.php index 7f50b8085d0..8b3e6172ac5 100644 --- a/library/Zend/Form/Element/Checkbox.php +++ b/library/Zend/Form/Element/Checkbox.php @@ -168,7 +168,7 @@ public function getInputSpecification() 'name' => $this->getName(), 'required' => true, ); - + if ($validator = $this->getValidator()) { $spec['validators'] = array( $validator, diff --git a/library/Zend/Form/Element/MultiCheckbox.php b/library/Zend/Form/Element/MultiCheckbox.php index b803d316d58..48fe7b62513 100644 --- a/library/Zend/Form/Element/MultiCheckbox.php +++ b/library/Zend/Form/Element/MultiCheckbox.php @@ -25,7 +25,7 @@ class MultiCheckbox extends Checkbox protected $attributes = array( 'type' => 'multi_checkbox', ); - + /** * @var bool */ @@ -116,7 +116,7 @@ public function setAttribute($key, $value) } return parent::setAttribute($key, $value); } - + /** * Set the flag to allow for disabling the automatic addition of an InArray validator. * diff --git a/tests/ZendTest/Form/Element/MultiCheckboxTest.php b/tests/ZendTest/Form/Element/MultiCheckboxTest.php index df430e767ae..2dee9baa509 100644 --- a/tests/ZendTest/Form/Element/MultiCheckboxTest.php +++ b/tests/ZendTest/Form/Element/MultiCheckboxTest.php @@ -134,7 +134,7 @@ public function testSetOptionsOptions() $this->assertEquals(array('bar' => 'baz'), $element->getOption('value_options')); $this->assertEquals(array('foo' => 'bar'), $element->getOption('options')); } - + public function testDisableInputSpecification() { $element = new MultiCheckboxElement();