]> git.koha-community.org Git - koha.git/commit
Bug 27808: Refresh the item object when AddReturn is called
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 26 Feb 2021 19:55:59 +0000 (16:55 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 4 Mar 2021 10:47:00 +0000 (11:47 +0100)
commit52babece97c9376b2bc7258a88c753e8f28f33ab
treecbbe8578b5f004524f3ee1942a449c2356809007
parentd4f047c672d25ab5f2ec4dcb716117c7e4b9083f
Bug 27808: Refresh the item object when AddReturn is called

This patch changes the original implementation so the item object is
refreshed altogether instead of explicitly pinpointing a specific field
we identified an edge case can leave out from ->store. I propose this
alterate implementation because what this bug highlights is the fact we
don't code thinking calls to things can have side-effects (like this
case, with AddReturn updating the onloan status (and maybe other
things?).

To test:
1. Make sure circ tests pass with and without this patch

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 26b57ad5d20e385ff922cc8737afebfece17a3cf)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm