From 1b41e7799b0071e97e37c63da4fe9d685d3b3fc3 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 13 Sep 2017 11:59:19 +0000 Subject: [PATCH] Bug 19198: (QA followup) Fix typo in conditions '&' should be '&&' Signed-off-by: Tomas Cohen Arazi 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 a9345b8e36..6ba87a2fa7 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -893,7 +893,7 @@ sub CanBookBeIssued { and $issue->borrowernumber == $borrower->{'borrowernumber'} ? 1 : 0 ); my $toomany = TooMany( $borrower, $item->{biblionumber}, $item, { onsite_checkout => $onsite_checkout, switch_onsite_checkout => $switch_onsite_checkout, } ); # if TooMany max_allowed returns 0 the user doesn't have permission to check out this book - if ( $toomany & !$needsconfirmation{RENEW_ISSUE} ) { + if ( $toomany && !$needsconfirmation{RENEW_ISSUE} ) { if ( $toomany->{max_allowed} == 0 ) { $needsconfirmation{PATRON_CANT} = 1; } -- 2.39.5