Permalink
Browse files

Update option

  • Loading branch information...
1 parent 7a86ea5 commit a4ddea49fec9446801e08ad85eabd72e2382a0c6 @bakura10 committed Sep 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 library/Zend/Form/Element/Select.php
View
6 library/Zend/Form/Element/Select.php
@@ -86,7 +86,7 @@ public function setValueOptions(array $options)
* - label: label to associate with the element
* - label_attributes: attributes to use when the label is rendered
* - value_options: list of values and labels for the select options
- * _ create_empty_option: should an empty option be prepended to the options ?
+ * _ empty_option: should an empty option be prepended to the options ?
*
* @param array|\Traversable $options
* @return Select|ElementInterface
@@ -104,8 +104,8 @@ public function setOptions($options)
$this->setValueOptions($this->options['options']);
}
- if (isset($this->options['create_empty_option'])) {
- $this->setShouldCreateEmptyOption($this->options['create_empty_option']);
+ if (isset($this->options['empty_option'])) {
+ $this->setEmptyOption($this->options['empty_option']);
}
return $this;

0 comments on commit a4ddea4

Please sign in to comment.