[Koha-bugs] [Bug 20487] AddReturn should always clear item.onloan

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 28 16:45:03 CEST 2018


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

--- Comment #1 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 73390
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73390&action=edit
Bug 20487: AddReturn should always clear items.onloan

If an item is no longer issued but somehow still has a date in the onloan
column, checking it in should clear that date.
Realized by a simple change in AddReturn, moving the ModItem call outside
the if-doreturn statement and testing if the change is needed.

Test plan:
[1] Run t/db_dependent/Circulation.t
[2] Bonus: Checkout item, delete issue from table, checkin. Verify that
    items.onloan has been cleared.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

-- 
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