From b5f122696cc40aee33830cdf7ab1da20fa4e7b66 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 14 Jun 2024 18:02:02 +0000 Subject: [PATCH] Bug 37055: Check count of holds, not if defined To test: - enable WaitingNotifyAtCheckout - have or create a waiting hold for a patron - check out an item to a different patron who does not have a waiting hold - Koha says "This patron has waiting holds that are available for checkout" - Apply patch - Reload patron (click 'Checkout' tab) - Check out an item - no warning - Find the patron with waiting hold - Check out an item - warning - Checkout the waiting item - no warning Signed-off-by: Brendan Lawlor Signed-off-by: Matt Blenkinsop Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index ff812fe5c1..d61b0df64b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -965,7 +965,7 @@ -[% IF waiting_holds %] +[% IF waiting_holds.count > 0 %]