]> git.koha-community.org Git - koha.git/commit
Bug 20487: AddReturn should clear items.onloan for unissued items
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 28 Mar 2018 14:25:07 +0000 (16:25 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 24 Aug 2018 11:40:45 +0000 (12:40 +0100)
commit1ed846bf5b5f4c57dfe6f8f86b87bf7ed15e4941
tree16cd23b0043a2c890976adc1e769c9473abf125a
parent32b01b264277a77dbb79133f5af8eeecbe64d997
Bug 20487: AddReturn should clear items.onloan for unissued items

If an item is no longer issued but somehow still has a date in the onloan
column, checking it in should clear that date.
Adding a ModItem call in the NotIssued section.

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@rijksmuseum.nl>
Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit a744a3e2026c52b9270ea248909f71f3744ff1a4)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Circulation.pm
t/db_dependent/Circulation.t