Bug 24441: Error when checking in an item with BranchTansferLimitsType set to itemtype
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 16 Jan 2020 19:10:18 +0000 (14:10 -0500)
committerJoy Nelson <joy@bywatersolutions.com>
Thu, 6 Feb 2020 22:52:58 +0000 (22:52 +0000)
commit203d8a194d8879db905121c8981bb499f9647c3e
tree4eabec372fe0156ddef4efb3df99b1497af71942
parent6fdc9f035dd7b07cfdfc9023b9f667975964a86b
Bug 24441: Error when checking in an item with BranchTansferLimitsType set to itemtype

It appears that the transition to using Koha::Item in AddReturn has introduced a bug. Previously $item was a hashref with the key 'itemtype', now that it's an object, it has no itemtype method and so triggers an error with the message "The method Koha::Item->itemtype is not covered by tests!".

Test Plan:
1) Enable Branch Transfer Limits via itemtype
2) Check in an item
3) Note the error
4) Apply this patch
5) Restart all the things!
6) Check in an item
7) No error!

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Maribeth (Turner) Shafer <mshafer@ckls.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
C4/Circulation.pm