Bugzilla – Attachment 171034 Details for
Bug 37525
Self checkout: "Return this item" doesn't show up in scan confirmation screen despite SCOAllowCheckin being allowed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37525: [SCO] Regression in 32256: "Return this item" doesn't show up despite SCOAllowCheckin being allowed
Bug-37525-SCO-Regression-in-32256-Return-this-item.patch (text/plain), 2.11 KB, created by
Victor Grousset/tuxayo
on 2024-09-04 15:24:08 UTC
(
hide
)
Description:
Bug 37525: [SCO] Regression in 32256: "Return this item" doesn't show up despite SCOAllowCheckin being allowed
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-09-04 15:24:08 UTC
Size:
2.11 KB
patch
obsolete
>From 1a9d7eb65f8e359f54c2e89d98c3aa963b83578e Mon Sep 17 00:00:00 2001 >From: Oliver Behnke <oliver.behnke@aei.mpg.de> >Date: Tue, 20 Aug 2024 19:37:36 +0300 >Subject: [PATCH] Bug 37525: [SCO] Regression in 32256: "Return this item" > doesn't show up despite SCOAllowCheckin being allowed > >There's a regression in bug 32256 and commit bb059abe respectively: > >https://gitlab.com/koha-community/Koha/-/commit/bb059abe90#a22dc682a84c41672294c66e441329a451b5cd5a_137_137 > >The refactoring of "renew" -> "c.renew" missed this line (at least), so the condition is never met. > >This fixes the issue and restores the original functionality. > >Test plan: >1. log in with a patron at http://localhost:8080/cgi-bin/koha/sco/sco-main.pl >2. check out an item >3. scan it again >4. see that the "return this item" choice isn't proposed. This is the > bug >5. apply patches >6. rescan the item in the self-check out >7. returning is proposed >8. check it in and confirms that it's not checked out anymore > >Signed-off-by: Oliver Behnke <oliver.behnke@aei.mpg.de> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >index e883f92460..c57c2cadff 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >@@ -135,7 +135,7 @@ > <p>This item is already checked out to you: <b>[% c.confirm | html %]</b> <i>([% c.barcode | html %])</i></p> > [% END %] > >- [% IF ( renew && Koha.Preference('SCOAllowCheckin') ) %] >+ [% IF ( c.renew && Koha.Preference('SCOAllowCheckin') ) %] > <form action="/cgi-bin/koha/sco/sco-main.pl" name="confirmForm" class="inline" method="post"> > [% INCLUDE 'csrf-token.inc' %] > <legend class="sr-only">Return</legend> >-- >2.46.0
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 37525
:
169856
|
170870
|
171034
|
172118