Bugzilla – Attachment 186391 Details for
Bug 40803
Users cannot renew overdue items from 'Overdue' tab in account
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40803: Use submit form link to submit renewals from overdue items tab in opac user account
Bug-40803-Use-submit-form-link-to-submit-renewals-.patch (text/plain), 2.91 KB, created by
Lucas Gass (lukeg)
on 2025-09-13 14:02:24 UTC
(
hide
)
Description:
Bug 40803: Use submit form link to submit renewals from overdue items tab in opac user account
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-09-13 14:02:24 UTC
Size:
2.91 KB
patch
obsolete
>From aad90a11725581789e8fb07914e5ef03b6ca3384 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 12 Sep 2025 17:15:17 +0000 >Subject: [PATCH] Bug 40803: Use submit form link to submit renewals from > overdue items tab in opac user account > >To test: >1 - Check out an item to a patron, backdated to be overdue >2 - Log in as that user to the OPAC >3 - From 'Your summary' - click the overdue tab, click renew >4 - 500 Error >5 - Apply patch >6 - Reload the page and repeat >7 - Success! > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > .../opac-tmpl/bootstrap/en/modules/opac-user.tt | 12 +++++++++++- > 1 file changed, 11 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 36e2a98dff2..9de01d19fd3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -784,7 +784,17 @@ > Account frozen > [% ELSIF ( OVERDUE.status ) %] > [% IF ( canrenew ) %] >- <a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&item=[% OVERDUE.itemnumber | uri %]&bornum=[% OVERDUE.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 %] > <span class="renewals" > >( [% I18N.tx("{renewals_left} of {renewals_allowed} renewals remaining", { renewals_left = OVERDUE.renewsleft, renewals_allowed = OVERDUE.renewsallowed }) %] >-- >2.39.5
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 40803
:
186387
| 186391