From 0a16cae9d24bd66508be0628480847c0e332a5f6 Mon Sep 17 00:00:00 2001 From: Oliver Behnke 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. Signed-off-by: Oliver Behnke --- 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 d0896ec024..c11b62dd8d 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 @@

This item is already checked out to you: [% c.confirm | html %] ([% c.barcode | html %])

[% END %] - [% IF ( renew && Koha.Preference('SCOAllowCheckin') ) %] + [% IF ( c.renew && Koha.Preference('SCOAllowCheckin') ) %]
[% INCLUDE 'csrf-token.inc' %] Return -- 2.46.0