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 <gmcharlt@gmail.com>
This commit is contained in:
Kyle M Hall 2010-03-01 11:57:29 -05:00 committed by Galen Charlton
parent b0cd6429b0
commit a1336175fd

View file

@ -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