Bug 22762: Fix items.collection display on receiving
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 24 Apr 2019 04:03:34 +0000 (00:03 -0400)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 25 Apr 2019 09:52:31 +0000 (09:52 +0000)
commit2f60cd8dd23662ad2878cb6d189679fde125290f
tree7a9d5d0b4744272b7dad86d0fe5836ebe8850cc3
parentbe0d338366589ef80b69f287d7dbfc059476e4b2
Bug 22762: Fix items.collection display on receiving

Caused by
  commit 31c29fd31f557306233e6a2936148a5bb10b89a1
  Bug 21206: Replace C4::Items::GetItem

The log says: The method Koha::Item->collection is not covered by tests!

It has highlighted an older problem:
Since
  commit bb1e9c500c810402c64436c53bcc00ffb9a0b857
  Bug 17248 - Koha::AuthorisedValues - Remove GetKohaAuthorisedValueLib
the "Collection code" is not filled correctly (items.collection vs items.ccode).

Test plan:
- Set acqcreateitem to "when placing an order"
- Receive an order with items
=> The "Collection code" column must be filled with the items.ccode value
- Edit an item (You may need the patches on bug 22669)
- Change the collection code value
=> The "Collection code" column must be filled with the new value

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
acqui/orderreceive.pl
catalogue/getitem-ajax.pl