From ca1b7ebdc70a6cee574ecfabdfa56aab638c269b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 13 Oct 2021 11:57:49 -0400 Subject: [PATCH] Test for existence of AutoEmail and AutoMessage. Fixes #3369 issue 2. --- web/skins/classic/views/js/filter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/filter.js b/web/skins/classic/views/js/filter.js index f59c6de1d..e57ab959b 100644 --- a/web/skins/classic/views/js/filter.js +++ b/web/skins/classic/views/js/filter.js @@ -57,8 +57,8 @@ function validateForm(form) { form.elements['filter[AutoUnarchive]'].checked || form.elements['filter[UpdateDiskSpace]'].checked || form.elements['filter[AutoVideo]'].checked || - form.elements['filter[AutoEmail]'].checked || - form.elements['filter[AutoMessage]'].checked || + (form.elements['filter[AutoEmail]'].checked && form.elements['filter[AutoEmail]'].checked) || + (form.elements['filter[AutoMessage]'] && form.elements['filter[AutoMessage]'].checked) || form.elements['filter[AutoExecute]'].checked || form.elements['filter[AutoDelete]'].checked || form.elements['filter[AutoCopy]'].checked ||