From: Tim Düsterhus Date: Thu, 22 Apr 2021 14:42:52 +0000 (+0200) Subject: Move form validation to UserIgnoreAction::validateSubmitDialog() X-Git-Tag: 5.4.0_Alpha_1~54^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c547b523749bef3f281256328979efbe188f44d;p=GitHub%2FWoltLab%2FWCF.git Move form validation to UserIgnoreAction::validateSubmitDialog() --- 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(),