[Koha-bugs] [Bug 19063] New: Can' t receive order if one of the on order items has no itemtype

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 8 13:04:36 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19063

            Bug ID: 19063
           Summary: Can't receive order if one of the on order items has
                    no itemtype
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Acquisitions
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: katrin.fischer at bsz-bw.de
        QA Contact: testopia at bugs.koha-community.org

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list