From a1336175fd4b07be9b688791d52e998d55743b7a Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 1 Mar 2010 11:57:29 -0500 Subject: [PATCH] Bugfix 4123 - CanBookBeRenewed fixed. In Circulation::CanBookBeRenewed categorycode and itemtype were not being checked for * wildcard if a specific code was not given. Signed-off-by: Galen Charlton --- C4/Circulation.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index e3a37fa5e6..d6dbbb31b9 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2065,9 +2065,9 @@ sub CanBookBeRenewed { LEFT JOIN biblioitems USING (biblioitemnumber) WHERE - issuingrules.categorycode = borrowers.categorycode + (issuingrules.categorycode = borrowers.categorycode OR issuingrules.categorycode = '*') AND - issuingrules.itemtype = $itype + (issuingrules.itemtype = $itype OR issuingrules.itemtype = '*') AND (issuingrules.branchcode = $controlbranch OR issuingrules.branchcode = '*') AND -- 2.39.2