Bugzilla – Attachment 185705 Details for
Bug 40690
Checkout status doesn't appear on moredetail.pl if item is not checked out
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40690: Fix if/else/end logic for checkout
Bug-40690-Fix-ifelseend-logic-for-checkout.patch (text/plain), 1.98 KB, created by
David Cook
on 2025-08-22 06:27:00 UTC
(
hide
)
Description:
Bug 40690: Fix if/else/end logic for checkout
Filename:
MIME Type:
Creator:
David Cook
Created:
2025-08-22 06:27:00 UTC
Size:
1.98 KB
patch
obsolete
>From 9eb66f356377dcf56297454bf92fe9f9532a2631 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >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 <person> Due back on <date>" >6. Renew the item >7. Go to /cgi-bin/koha/catalogue/moredetail.pl?biblionumber=29 >8. Note that it says "Checked out to <person> Last renewed <date>, Due back on <date>" >--- > .../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 ) %] > <span>Due back on [% checkout.date_due | $KohaDates as_due_date => 1 %]</span> >- [% ELSE %] >- <span>Not checked out</span> > [% END %] >+ [% ELSE %] >+ <span>Not checked out</span> > [% END %] > </li> > [% IF ITEM_DAT.object.checkout.renewals_count %] >-- >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 40690
: 185705