From 486c0f293759bff84d4831c3802e172ab5657626 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Mon, 11 May 2020 18:41:16 +0200 Subject: [PATCH] Fix for #1382 (Restrictions with "&" in it can't be deleted) --- cps/static/js/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/static/js/table.js b/cps/static/js/table.js index 9be7e632..77045db3 100644 --- a/cps/static/js/table.js +++ b/cps/static/js/table.js @@ -124,7 +124,7 @@ $(function() { if (field === 3) { $.ajax ({ type: "Post", - data: "id=" + row.id + "&type=" + row.type + "&Element=" + row.Element, + data: "id=" + row.id + "&type=" + row.type + "&Element=" + encodeURIComponent(row.Element), url: path + "/../../ajax/deleterestriction/" + type, async: true, timeout: 900,