From: firedranzer Date: Mon, 5 Mar 2018 17:43:50 +0000 (+0530) Subject: Add check for all thresholds X-Git-Tag: 1.7.0~54^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e6ea42a49d070cdca88e175538b936bbfaba88d3;p=rspamd.git Add check for all thresholds --- 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",