From 7ed66f1cdb8af4c17739b4de9a1b80cbf4772810 Mon Sep 17 00:00:00 2001 From: Tomy Hsieh Date: Mon, 19 Dec 2022 09:06:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20fix:=20global=20action=20form=20?= =?UTF-8?q?validation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tubee/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tubee/forms.py b/tubee/forms.py index 8784028..757da45 100644 --- a/tubee/forms.py +++ b/tubee/forms.py @@ -131,6 +131,8 @@ class ActionForm(FlaskForm): def validate_automate(self, field): if not self.channel_id.data and not self.tag_id.data and field.data: field.errors = ["Automate can only be enabled for channels or tags"] + return False + return True def validate(self): if not self.action_name.validate(self) or not self.action_type.validate(self):