From 9eb66f356377dcf56297454bf92fe9f9532a2631 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 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 " --- .../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 84526221a9..e9e28b1330 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -237,9 +237,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 %] -- 2.39.5