From 5ba9e41df8c2ec2b6bfded55d27a8dcfba480007 Mon Sep 17 00:00:00 2001 From: Dario Savella Date: Fri, 15 Mar 2019 10:39:52 +0100 Subject: [PATCH] Form helper did not respect passed FormHelper::inputDefaults() --- lib/Cake/View/Helper/FormHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 83eb67eaf..db1aa4164 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -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) {