mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Form helper did not respect passed FormHelper::inputDefaults()
This commit is contained in:
parent
4fd57b86ca
commit
5ba9e41df8
1 changed files with 1 additions and 1 deletions
|
@ -1095,7 +1095,7 @@ class FormHelper extends AppHelper {
|
|||
|
||||
$out['error'] = null;
|
||||
if ($type !== 'hidden' && $error !== false) {
|
||||
$errMsg = $this->error($fieldName, $error);
|
||||
$errMsg = $this->error($fieldName, null, $error);
|
||||
if ($errMsg) {
|
||||
$divOptions = $this->addClass($divOptions, Hash::get($divOptions, 'errorClass', 'error'));
|
||||
if ($errorMessage) {
|
||||
|
|
Loading…
Reference in a new issue