From e4d94a2393588a6dc512b76e9ba141c17649b920 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 4 Jun 2018 12:14:10 -0300 Subject: [PATCH] Bug 20778: (bug 19777 follow-up) Fix subscription deletion Caused by commit 666a1b276097785c2a7c33e718f26f5512b3d972 Bug 19777: Move template JavaScript to the footer: Serials, part 3 TT vars should not be used in .js files Test plan: Delete a subscription, confirm you see the confirmation popup and that the it deletes the subscription correctly after it has been confirmed. Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js b/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js index 8ef2db932f..1f181c2332 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js +++ b/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js @@ -16,7 +16,7 @@ function confirm_reopen() { function confirm_deletion() { var is_confirmed = confirm( CONFIRM_DELETE_SUBSCRIPTION ); if (is_confirmed) { - window.location="subscription-detail.pl?subscriptionid=[% subscriptionid %]&op=del"; + window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=del"; } } function popup(subscriptionid) { -- 2.39.5