From f60282eaf5cba2dfba90b07fe46b6b8d45adf9b5 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 a135d9f1b..b59c68417 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 ||