From fa5a840d46642168d1ed9b72e10bb91b8c776405 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. --- C4/Circulation.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 98f324c..6ff6f8e 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2060,9 +2060,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 -- 1.5.6.5