From e6ea42a49d070cdca88e175538b936bbfaba88d3 Mon Sep 17 00:00:00 2001 From: firedranzer Date: Mon, 5 Mar 2018 23:13:50 +0530 Subject: [PATCH] Add check for all thresholds --- interface/js/app/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/js/app/config.js b/interface/js/app/config.js index c6d4a9b48..d591abd53 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -219,7 +219,7 @@ function($) { var elts = loadActionsFromForm(); // String to array for comparison var eltsArray = JSON.parse(loadActionsFromForm()); - if(eltsArray[2]>=0){ + if(eltsArray[0]>=0 && eltsArray[1]>=0 && eltsArray[2]>=0){ rspamd.queryNeighbours('saveactions', null, null, "POST", {}, { data: elts, dataType: "json", @@ -233,7 +233,7 @@ function($) { var elts = loadActionsFromForm(); // String to array for comparison var eltsArray = JSON.parse(loadActionsFromForm()); - if(eltsArray[2]>=0){ + if(eltsArray[0]>=0 && eltsArray[1]>=0 && eltsArray[2]>=0){ rspamd.queryLocal('saveactions', null, null, "POST", {}, { data: elts, dataType: "json", -- 2.39.5