Bugzilla – Attachment 167870 Details for
Bug 37111
OPAC renewal - CSRF "op must be set"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37111: Fix renew link on opac-user.tt
Bug-37111-Fix-renew-link-on-opac-usertt.patch (text/plain), 2.60 KB, created by
David Nind
on 2024-06-18 20:00:43 UTC
(
hide
)
Description:
Bug 37111: Fix renew link on opac-user.tt
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-06-18 20:00:43 UTC
Size:
2.60 KB
patch
obsolete
>From 9a0cdd7256430774d71e0bdaf32150eae91d8636 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 18 Jun 2024 19:34:52 +0000 >Subject: [PATCH] Bug 37111: Fix renew link on opac-user.tt > >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. > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 3 ++- > 1 file changed, 2 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 ae3d38e045..a5d392d0ce 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -453,7 +453,7 @@ > [% IF ISSUE.renewed %]<span class="blabel label-success">Renewed!</span><br />[% END %] > [% IF ( ISSUE.status ) %] > [% IF ( canrenew ) %] >- <input type="checkbox" name="issue" value="[% ISSUE.issue_id | uri %]"/> <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&issue=[% ISSUE.issue_id | uri %]&borrowernumber=[% ISSUE.borrowernumber | uri %]">Renew</a> >+ <input type="checkbox" name="issue" value="[% ISSUE.issue_id | uri %]"/> <a class="submit-form-link" href="#" data-method="post" data-action="/cgi-bin/koha/opac-renew.pl?from=opac_user" data-issue="[% ISSUE.issue_id | html %]" data-borrowernumber="[% ISSUE.borrowernumber | html%]" data-op="cud-renew">Renew</a> > [% END %] > [% IF ISSUE.renewalfee > 0 %] > <span class="renewalfee label label-warning">Fee for item type '[% ItemTypes.GetDescription( ISSUE.renewalitemtype) | html %]': [% ISSUE.renewalfee | $Price %]</span> >@@ -1085,6 +1085,7 @@ > > [% INCLUDE 'opac-bottom.inc' %] > [% BLOCK jsinclude %] >+ [% Asset.js("js/form-submit.js") | $raw %] > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'datatables.inc' %] > <script> >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37111
:
167860
|
167866
|
167867
|
167869
|
167870
|
167921
|
167922
|
168103
|
169157
|
169158