mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
default options are lost in case of eg. validation error
This commit is contained in:
parent
6599422a7a
commit
cd2dca205c
1 changed files with 1 additions and 1 deletions
|
@ -946,7 +946,7 @@ class FormHelper extends AppHelper {
|
||||||
public function input($fieldName, $options = array()) {
|
public function input($fieldName, $options = array()) {
|
||||||
$this->setEntity($fieldName);
|
$this->setEntity($fieldName);
|
||||||
|
|
||||||
$options = array_merge(
|
$options = Set::merge(
|
||||||
array('before' => null, 'between' => null, 'after' => null, 'format' => null),
|
array('before' => null, 'between' => null, 'after' => null, 'format' => null),
|
||||||
$this->_inputDefaults,
|
$this->_inputDefaults,
|
||||||
$options
|
$options
|
||||||
|
|
Loading…
Add table
Reference in a new issue