[Koha-bugs] [Bug 25855] Add post_renewal_hook in circulation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 23 21:29:13 CEST 2020


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

--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 106216
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=106216&action=edit
Bug 25855: Add a post_renewal_action plugin hook

This patch adds a new hook to notify plugins about renewal actions. To
test it:

1. Apply the unit tests
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Plugins/Circulation_hooks.t
=> FAIL: The tests expect some warnings to show, and they don't (i.e.
        the sample plugin hook is not being called).
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass! The hook is being called on renewal!
5. Sign off :-D

Sponsored-by: ByWater Solutions

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list