Bug 19004: [QA Follow-up] No need to check item-level_itypes again
As Jonathan pointed out, GetItem already called effective_itemtype.
So we can just use $item->{itype} here.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0e744d49b5)
(cherry picked from commit ad71886855)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
parent
bd2602adac
commit
3e38feb58a
|
|
@ -1832,10 +1832,7 @@ sub AddReturn {
|
|||
}
|
||||
|
||||
my $itemnumber = $item->{ itemnumber };
|
||||
|
||||
my $item_level_itypes = C4::Context->preference("item-level_itypes");
|
||||
my $biblio = $item_level_itypes ? undef : GetBiblioData( $item->{ biblionumber } ); # don't get bib data unless we need it
|
||||
my $itemtype = $item_level_itypes ? $item->{itype} : $biblio->{itemtype};
|
||||
my $itemtype = $item->{itype}; # GetItem called effective_itemtype
|
||||
|
||||
my $issue = GetItemIssue($itemnumber);
|
||||
if ($issue and $issue->{borrowernumber}) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue