From f0dad7ba511c5e387277ea5cbd6056c66f9fe4b1 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? Signed-off-by: Jonathan Druart --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 76aebdf253..6e5dcb53ad 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -429,7 +429,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.39.5