]> git.koha-community.org Git - koha.git/commit
Bug 26108: Only call the plugin hook if a return took place
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 31 Jul 2020 12:52:10 +0000 (09:52 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 31 Jul 2020 13:04:44 +0000 (15:04 +0200)
commitce441708906fa282e000f523243ded20541970cc
treec6ac40c17006628fb1a1ddad4840ab5b1d5b7b2f
parenta51b06001f2f8e42efc48d1898060f1d8d23ae62
Bug 26108: Only call the plugin hook if a return took place

This patch makes the hooks be called only if the checkin is effective
(i.e. if it is not rejected for some reason.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Plugins/Circulation_hooks.t
=> FAIL: Tests fail
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Circulation.pm