From 4a8f0c7899a43b9adc59a168e277532965f979f9 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 18 Jun 2024 17:14:36 +0000 Subject: [PATCH] Bug 37111: Turn Renew link into a POST form To test: 1. Check some items out to a patron 2. Set the username and apssword for the patron so that you can log in as that patron. 3. Log in to the OAPC as that patron. 4. Go to Your account > Summary (the default landing page after you log in). 5. Click "Renew" for one of the items. 6. You get the error as above. 7. APPLY PATCH 8. Try steps 1 -5 again, you should not get an error. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index 89c8dfab4f..57242630a7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -452,7 +452,14 @@ [% IF ISSUE.renewed %]Renewed!
[% END %] [% IF ( ISSUE.status ) %] [% IF ( canrenew ) %] - Renew +
+ [% INCLUDE 'csrf-token.inc' %] + + + + + +
[% END %] [% IF ISSUE.renewalfee > 0 %] Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %] -- 2.39.2