From 1debeeb8bf539a7d2527b543dcb080b0d048d3a8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 4 Aug 2020 10:39:24 +0200 Subject: [PATCH] Bug 21946: Restore defined vs "" The tests still pass. Was the original change really useful? --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index dfbe1eeb27..ee7f5a7ccd 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -430,7 +430,7 @@ sub TooMany { # if a rule is found and has a loan limit set, count # how many loans the patron already has that meet that # rule - if (defined($maxissueqty_rule) and defined($maxissueqty_rule->rule_value)) { + if (defined($maxissueqty_rule) and $maxissueqty_rule->rule_value ne "") { my @bind_params; my $count_query = ""; -- 2.20.1