From 730f13271780d319b96cfa870aa4d58a53962394 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Wed, 11 Nov 2015 15:41:49 +0200 Subject: [PATCH] Bug 9525 - group floating rules, CGI doesn't understand DELETE at all. instead of DELETE we GET the delete request so CGI works with it. --- koha-tmpl/intranet-tmpl/prog/en/js/admin/floating-matrix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/admin/floating-matrix.js b/koha-tmpl/intranet-tmpl/prog/en/js/admin/floating-matrix.js index 09b669d..508d8e6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/admin/floating-matrix.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/admin/floating-matrix.js @@ -164,7 +164,7 @@ FloMax.persistBranchRule = function (brJSON, branchRule) { if (brJSON.floating == 'DISABLED') { brJSON.delete = 1; //A hack to trick Perl CGI to understand this is a HTTP DELETE-verb. $.ajax('floating-matrix-api.pl', - {method : 'DELETE', + {method : 'POST', //Should be DELETE but damn CGI data : brJSON, dataType : 'json', }).done(function(data, textStatus, jqXHR){ -- 1.9.1