From 86012e08b0cd47efe0e5b78bf76af370c6029a1d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 20 Nov 2020 11:27:45 +0100 Subject: [PATCH] Bug 26976: Display 0 if renewalsallowed is not defined If the circulation rule "renewalsallowed" is not set (or an empty string) then the checkout list displays (0 of renewals remaining) It should display "0 of 0" Test plan: Set renewalsallowed to an empty string Check an item out Notice the change Signed-off-by: David Nind Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Jonathan Druart (cherry picked from commit 01a7dc70670801fab021ba7e4f782542c744bbee) Signed-off-by: Fridolin Somers (cherry picked from commit 7e4bab26ca65b28df39cdf7d480b9f4c5e9e3e53) Signed-off-by: Andrew Fuerste-Henry --- svc/checkouts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svc/checkouts b/svc/checkouts index 968388ae8d..38c1edd8b2 100755 --- a/svc/checkouts +++ b/svc/checkouts @@ -231,7 +231,7 @@ while ( my $c = $sth->fetchrow_hashref() ) { onsite_checkout => $c->{onsite_checkout}, enumchron => $c->{enumchron}, renewals_count => $renewals_count, - renewals_allowed => $renewals_allowed, + renewals_allowed => $renewals_allowed || 0, renewals_remaining => $renewals_remaining, return_claim_id => $c->{return_claim_id}, -- 2.39.5