From 94cca6a22b4738d4cec857ecbf40ef81fb2fbdcd Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Fri, 11 Dec 2009 11:12:23 +0100 Subject: [PATCH] MT 2495 : Fix multiple occurences of itemtype in guided reports criteria Signed-off-by: Henri-Damien LAURENT --- C4/Reports/Guided.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm index a7d6f48006..0c969e3253 100644 --- a/C4/Reports/Guided.pm +++ b/C4/Reports/Guided.pm @@ -82,11 +82,12 @@ $criteria{'1'} = [ 'items.dateaccessioned|date' ]; $criteria{'2'} = - [ 'items.itemnumber|textrange', 'items.biblionumber|textrange', 'items.barcode|textrange', 'biblio.frameworkcode', 'items.holdingbranch', 'items.homebranch', 'biblio.datecreated|daterange', 'biblio.timestamp|daterange', 'items.onloan|daterange', 'items.ccode', 'items.itemcallnumber|textrange', 'items.itype', 'items.itemlost', 'items.location' ]; + [ 'items.itemnumber|textrange', 'items.biblionumber|textrange', 'items.barcode|textrange', 'biblio.frameworkcode', 'items.holdingbranch', 'items.homebranch', 'biblio.datecreated|daterange', 'biblio.timestamp|daterange', 'items.onloan|daterange', 'items.ccode', 'items.itemcallnumber|textrange', 'items.itemlost', 'items.location' ]; $criteria{'3'} = ['borrowers.branchcode']; $criteria{'4'} = ['aqorders.datereceived|date']; $criteria{'5'} = ['borrowers.branchcode']; +# Adds itemtypes to criteria, according to the syspref if (C4::Context->preference('item-level_itypes')) { unshift @{ $criteria{'1'} }, 'items.itype'; unshift @{ $criteria{'2'} }, 'items.itype'; -- 2.39.5