Form helper did not respect passed FormHelper::inputDefaults()

This commit is contained in:
Dario Savella 2019-03-15 10:39:52 +01:00
parent 4fd57b86ca
commit 5ba9e41df8

View file

@ -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) {