]> git.koha-community.org Git - koha.git/commit
Bug 22762: Fix items.collection display on receiving
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 24 Apr 2019 04:09:44 +0000 (00:09 -0400)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 13 May 2019 20:22:45 +0000 (20:22 +0000)
commitc0c0303fcc76788fd55d2fc5319dde9ccda008f1
tree8cf2f0f0e70d798e55f46b1661f14d36a65c6392
parenta2d45b1cb4a65ba29f3047fa34ae75fad3a4144b
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
- Change the collection code value
=> The "Collection code" column must be filled with the new value

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 49c99ced88af8d9d17d433c69322b862d30aee8a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
acqui/orderreceive.pl
catalogue/getitem-ajax.pl