Skip to content

Commit

Permalink
Fix part of #1143 - 3.11x and PHP 8.1 can't delete projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Jul 26, 2022
1 parent cce8d1c commit df7f50d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website_code/scripts/template_management.js
Expand Up @@ -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){
Expand All @@ -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){
Expand All @@ -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){
Expand Down

0 comments on commit df7f50d

Please sign in to comment.