Bug 19063 - Can't receive order if one of the on order items has no itemtype
Summary: Can't receive order if one of the on order items has no itemtype
Status: RESOLVED DUPLICATE of bug 19194
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-08 11:04 UTC by Katrin Fischer
Modified: 2017-10-10 14:03 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2017-08-08 11:04:36 UTC
When receiving an order where one or more items have no itemtype set, there is the usual "internal server error" from Plack. The Plack error log shows:

item-level_itypes set but no itemtype set for item (3) at /home/vagrant/kohaclone/Koha/Schema/Result/Item.pm line 698.
Can't call method "description" on an undefined value at /home/vagrant/kohaclone/acqui/orderreceive.pl line 150.

To test:
- Create a basket
- Create an order (AceCreateItem set to 'on order') with multiple items
- Make sure one or more of the items have no itemtype set
- Close basket
- Receive shipment
- Try to receive one or more items from the order
- Verify error shows

For on order items it might make sense to allow an empty itemtype - libraries might want to decide about that when the items arrive.
Comment 1 Jonathan Druart 2017-10-10 14:03:31 UTC

*** This bug has been marked as a duplicate of bug 19194 ***