Navigation Menu

Skip to content

Commit

Permalink
default options are lost in case of eg. validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu Cammaert committed Feb 28, 2012
1 parent 6599422 commit cd2dca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -946,7 +946,7 @@ public function inputs($fields = null, $blacklist = null) {
public function input($fieldName, $options = array()) {
$this->setEntity($fieldName);

$options = array_merge(
$options = Set::merge(
array('before' => null, 'between' => null, 'after' => null, 'format' => null),
$this->_inputDefaults,
$options
Expand Down

0 comments on commit cd2dca2

Please sign in to comment.