]> git.koha-community.org Git - koha.git/commit
Bug 19899: Restore Item floats feature - do not crash
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Jan 2018 14:42:03 +0000 (11:42 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 15 Jan 2018 15:29:17 +0000 (15:29 +0000)
commitc916d0001bd03a764ec0b1926a2ca4327e356ea0
treec6bf126a36ede4ac30a8a1253ff70b50ff558d24
parent6e9a466a7a0fde6a7706ef80ae773ac53d9fc57e
Bug 19899: Restore Item floats feature - do not crash

Error is "The method noreturn is not covered by tests!"
caused by commit 6eade474ed3a84a5ba372a26ac27bf9fb4bd2299
Bug 18276: Remove GetBiblioFromItemNumber - Easy ones

When the "Return policy" (var returnbranch) is set to "Item floats" (value noreturn)
the library must be the current library (from userenv).
This behaviour is used in C4::Circulation::AddReturn

On bug 18276 I assumed that the value was either holdingbranch or
homebranch, and forgot it could be "noreturn"

Test plan:
Set Return policy to Item floats
Check an item in
=> without this patch it explodes
=> With this patch applied it will check the item in

Signed-off-by: Mohd Hafiz Yusoff <mhby87@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
circ/returns.pl