From d6657727a17ddf5e938aecf09ef10c96785df8c4 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Fri, 10 May 2013 12:38:53 +0200 Subject: [PATCH] Bug 9532: GetItem must use item-level_itypes syspref Signed-off-by: Chris Cormack Signed-off-by: Kyle M Hall --- C4/Items.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index 212a9d3..b8a8adb 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -163,8 +163,8 @@ sub GetItem { $ssth->execute($data->{'itemnumber'}) ; ($data->{'serialseq'} , $data->{'publisheddate'}) = $ssth->fetchrow_array(); } - #if we don't have an items.itype, use biblioitems.itemtype. - if( ! $data->{'itype'} ) { + # if itemtype not on items.itype, use biblioitems.itemtype + unless ( C4::Context->preference('item-level_itypes') ) { my $sth = $dbh->prepare("SELECT itemtype FROM biblioitems WHERE biblionumber = ?"); $sth->execute($data->{'biblionumber'}); ($data->{'itype'}) = $sth->fetchrow_array; -- 1.7.2.5