Bug 23993

Summary: Can't call method "notforloan" on an undefined value at C4/Reserves.pm line 1177.
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Architecture, internals, and plumbingAssignee: Marcel de Rooy <m.de.rooy>
Status: CLOSED WONTFIX QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21842
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 23993: Add check if itemtype exists in IsAvailableForItemLevelRequest
Bug 23993: Add check if itemtype exists in IsAvailableForItemLevelRequest

Description Marcel de Rooy 2019-11-08 09:05:07 UTC
Imported an unknown item type.
Tried to place a hold.
Can't call method "notforloan" on an undefined value at /usr/share/koha/C4/Reserves.pm line 1177.
Comment 1 Marcel de Rooy 2019-11-08 09:18:56 UTC
Created attachment 95186 [details] [review]
Bug 23993: Add check if itemtype exists in IsAvailableForItemLevelRequest

Trivial change

Test plan:
Run Reserves.t
Import book with unknown item type, try to place hold (with/without patch)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 2 Marcel de Rooy 2019-11-08 09:19:36 UTC
Trivial fix, self signoff
Comment 3 Bouzid Fergani 2019-11-08 21:33:33 UTC
Created attachment 95243 [details] [review]
Bug 23993: Add check if itemtype exists in IsAvailableForItemLevelRequest

Trivial change

Test plan:
Run Reserves.t
Import book with unknown item type, try to place hold (with/without patch)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Comment 4 Jonathan Druart 2019-11-13 12:24:34 UTC
See bug 21842 comment 12.