From df7f50d90cc146bd9561f97452920f597dafaeb7 Mon Sep 17 00:00:00 2001 From: Tom Reijnders Date: Tue, 26 Jul 2022 16:07:36 +0200 Subject: [PATCH] Fix part of #1143 - 3.11x and PHP 8.1 can't delete projects. --- website_code/scripts/template_management.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website_code/scripts/template_management.js b/website_code/scripts/template_management.js index 8d26fde05b..a63dc66fc2 100644 --- a/website_code/scripts/template_management.js +++ b/website_code/scripts/template_management.js @@ -796,7 +796,7 @@ function remove_template(template_id) { type: "POST", url: "website_code/php/templates/remove_template.php", data: { - template_id: template_id.substr(template_id.indexOf("_") + 1, template_id.length) + template_id: template_id } }) .done(function(response){ @@ -821,7 +821,7 @@ function recycle_bin_remove_all_template(template_id) { type: "POST", url: "website_code/php/templates/remove_template.php", data: { - template_id: template_id.substr(template_id.indexOf("_") + 1, template_id.length) + template_id: template_id } }) .done(function(response){ @@ -847,7 +847,7 @@ function delete_template(template_id) { type: "POST", url: "website_code/php/templates/delete_template.php", data: { - template_id: template_id.substr(template_id.indexOf("_") + 1, template_id.length) + template_id: template_id } }) .done(function(response){