From 3c547b523749bef3f281256328979efbe188f44d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 22 Apr 2021 16:42:52 +0200 Subject: [PATCH] Move form validation to UserIgnoreAction::validateSubmitDialog() --- .../files/lib/data/user/ignore/UserIgnoreAction.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreAction.class.php b/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreAction.class.php index 32fe88f96c..2706506d0d 100644 --- a/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreAction.class.php +++ b/wcfsetup/install/files/lib/data/user/ignore/UserIgnoreAction.class.php @@ -187,12 +187,11 @@ class UserIgnoreAction extends AbstractDatabaseObjectAction $this->getForm()->requestData($this->parameters['data'] ?? []); $this->getForm()->readValues(); + $this->getForm()->validate(); } public function submitDialog() { - $this->getForm()->validate(); - if ($this->getForm()->hasValidationErrors()) { return [ 'dialog' => $this->getForm()->getHtml(), -- 2.20.1