From b0324fa88546f566df43770c80b6342c9362db12 Mon Sep 17 00:00:00 2001 From: Philipp Dieter Date: Wed, 2 Jun 2021 19:10:39 +0200 Subject: [PATCH] [FEATURE] Set valid state when adding validation error --- Classes/Controller/ActionController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/Controller/ActionController.php b/Classes/Controller/ActionController.php index 10adf54..c8b75f6 100644 --- a/Classes/Controller/ActionController.php +++ b/Classes/Controller/ActionController.php @@ -437,6 +437,7 @@ class ActionController extends BaseController protected function addValidationError( $field, $keyword, $overwrite = false ) { + $this->isValid = false; $this->responseStatus = [400 => 'validationError']; if (!array_key_exists($field, $this->errors) || $overwrite == true