Bug 20274: Itemtypes report gives zero results if item-level_itypes set to bibliographic records
1) Go to reports then catalog by item types 2) Pick a location and look at table 3) Change the system prefernce of item-level_itypes 4) Verify a zero result 5) Apply patch and retry 6) Verify that result does not change to zero on either preference Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
03e5ec6170
commit
8ad2c206cb
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ sub calculate {
|
|||
}
|
||||
else {
|
||||
$sth = $dbh->prepare("
|
||||
SELECT itemtype, description, biblioitems.itemtype, COUNT(*) AS total
|
||||
SELECT biblioitems.itemtype, description, biblioitems.itemtype, COUNT(*) AS total
|
||||
FROM itemtypes, biblioitems, items
|
||||
WHERE biblioitems.itemtype=itemtypes.itemtype
|
||||
AND items.biblioitemnumber=biblioitems.biblioitemnumber
|
||||
|
@ -65,7 +65,7 @@ sub calculate {
|
|||
} else {
|
||||
if (C4::Context->preference('item-level_itypes')) {
|
||||
$sth = $dbh->prepare("
|
||||
SELECT itemtype, description,items.itype AS itemtype, COUNT(*) AS total
|
||||
SELECT biblioitems.itemtype, description,items.itype AS itemtype, COUNT(*) AS total
|
||||
FROM itemtypes,items
|
||||
WHERE items.itype=itemtypes.itemtype
|
||||
GROUP BY items.itype
|
||||
|
|
Loading…
Reference in a new issue