Bug 29553: Fix crash on undefined notforloan value
Test plan:
Set item level itypes to biblioitems.
Find a record with itemtype NULL, having an item.
Place a hold. Without this patch, it crashes.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: ThibaudGLT <thibaud.guillot@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 2eec30eb64)
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
9c63acbe0a
commit
ddc7f0bd1f
|
|
@ -1342,7 +1342,7 @@ sub IsAvailableForItemLevelRequest {
|
|||
# FIXME - a lot of places in the code do this
|
||||
# or something similar - need to be
|
||||
# consolidated
|
||||
my $itemtype = $item->effective_itemtype;
|
||||
my $itemtype = $item->effective_itemtype or return 0;
|
||||
my $notforloan_per_itemtype = Koha::ItemTypes->find($itemtype)->notforloan;
|
||||
|
||||
return 0 if
|
||||
|
|
|
|||
Loading…
Reference in New Issue