[Koha-bugs] [Bug 24331] New: Internal server error when placing hold on item if itemtype undefined
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 2 17:05:28 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24331
Bug ID: 24331
Summary: Internal server error when placing hold on item if
itemtype undefined
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Hold requests
Assignee: koha-bugs at lists.koha-community.org
Reporter: nick at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com
Error is:
Can't call method "notforloan" on an undefined value at
/usr/share/koha/lib/C4/Reserves.pm line 1199.
C4::Reserves::IsAvailableForItemLevelRequest:
1198 my $itemtype = $item->effective_itemtype;
1199 my $notforloan_per_itemtype =
Koha::ItemTypes->find($itemtype)->notforloan;
We should check that we found an itemtype before calling notforloan
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list