]> git.koha-community.org Git - koha.git/commit
Bug 30180: Add 'placed' after_hold_hook
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 25 Feb 2022 08:50:20 +0000 (05:50 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 5 May 2022 00:29:24 +0000 (14:29 -1000)
commite7a2705c5dd044a4f94888ec19f769649c281cb5
tree2c10d8183f33a023cb3dede7100b684f8ef2ce36
parent141b817b935ad23a2c36278e62a5e0ed08191057
Bug 30180: Add 'placed' after_hold_hook

This patch adds a new 'after_hold_action' hook, that is called with the
'placed' action parameter.

To test:
1. Apply the unit tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Plugins/Holds_hooks.t
=> FAIL: Boo, the hook is not called
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: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Reserves.pm