From cf3446fce28d69bcc1d7ff68eb68c868698cf65b Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 22 Aug 2025 06:23:59 +0000 Subject: [PATCH] Bug 40690: Fix if/else/end logic for checkout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change fixes the Checkout status on moredetail.pl so that it actually shows "Not checked out" when it's not checked out. Test plan: 0. Apply the patch 1. Go to /cgi-bin/koha/catalogue/moredetail.pl?biblionumber=29 on a fresh KTD 2. Note that the "Checkout status" is "Not checked out" 3. Check out the item to someone 4. Go to /cgi-bin/koha/catalogue/moredetail.pl?biblionumber=29 5. Note that it says "Checked out to Due back on " 6. Renew the item 7. Go to /cgi-bin/koha/catalogue/moredetail.pl?biblionumber=29 8. Note that it says "Checked out to Last renewed , Due back on " Signed-off-by: Anneli Österman Signed-off-by: Marcel de Rooy Signed-off-by: Lucas Gass (cherry picked from commit 59d43e8d483ac61241a5dc9f2fac42640d4de402) Signed-off-by: Paul Derscheid (cherry picked from commit ad886b586954479f2e8b2383396b38f4fca70600) Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index f49977e395..5731362f3f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -187,9 +187,9 @@ [% END %] [% IF ( checkout.date_due ) %] Due back on [% checkout.date_due | $KohaDates as_due_date => 1 %] - [% ELSE %] - Not checked out [% END %] + [% ELSE %] + Not checked out [% END %] [% IF ITEM_DAT.object.checkout.renewals_count %]