From 78bcbf52f727f6f3d22eb63933b6952d968a35d3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 20 Feb 2024 15:49:41 +0000 Subject: [PATCH] Bug 34478: Convert patron file delete link to a posted form This patch modifies the patron file template to convert the "Delete" link to a form which includes the CSRF token. The script has already been modified to check for the "op" value updated in the template. Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/members/files.tt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt index 1756b41371..d3a887fa38 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt @@ -70,7 +70,17 @@ [% f.file_type | html %] [% f.file_description | html %] [% f.date_uploaded | $KohaDates %] - [% IF CAN_user_borrowers_edit_borrowers %] Delete[% END %] + [% IF CAN_user_borrowers_edit_borrowers %] + +
+ [% INCLUDE 'csrf-token.inc' %] + + + + +
+ + [% END %] [% END %] -- 2.39.5