From 87d12dbe3c57a5f1fb105cdb40eda4c4cf2a3643 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 20 Feb 2024 19:26:56 +0000 Subject: [PATCH] Bug 34478: Comment deletion should be POSTed form This patch updates the "Delete" button on the comments moderation page to convert the GET link to a posted form. Unrelated: The JavaScript has also been modified so that it asks for confirmation. Signed-off-by: Jonathan Druart --- .../prog/en/modules/reviews/reviewswaiting.tt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt index 56321b5ec0..536ab93cc2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reviews/reviewswaiting.tt @@ -98,7 +98,12 @@ [% IF ( status ) %] Unapprove[% ELSE %] Approve[% END %] - Delete +
+ [% INCLUDE 'csrf-token.inc' %] + + + +
[% END %] @@ -123,6 +128,13 @@ [% MACRO jsinclude BLOCK %] [% Asset.js("js/tools-menu.js") | $raw %] + [% END %] [% INCLUDE 'intranet-bottom.inc' %] -- 2.39.5