From 17c33231c4d08ae65491970cbb46f9e17e772471 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 5 Sep 2023 16:08:20 +1200 Subject: [PATCH] FIX Call Textarea validation extension --- src/Forms/TextareaField.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Forms/TextareaField.php b/src/Forms/TextareaField.php index 0ffbc23a1..0dd025a7f 100644 --- a/src/Forms/TextareaField.php +++ b/src/Forms/TextareaField.php @@ -174,6 +174,7 @@ class TextareaField extends FormField */ public function validate($validator) { + $result = true; if (!is_null($this->maxLength) && mb_strlen($this->value ?? '') > $this->maxLength) { $name = strip_tags($this->Title() ? $this->Title() : $this->getName()); $validator->validationError( @@ -185,9 +186,9 @@ class TextareaField extends FormField ), "validation" ); - return false; + $result = false; } - return true; + return $this->extendValidationResult($result, $validator); } public function getSchemaValidation()