Bug 24031: Add plugin hook after_hold_create
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 13 Nov 2019 10:11:54 +0000 (11:11 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 Jul 2020 15:30:23 +0000 (17:30 +0200)
commitd8c137a718cdb344b2910f449e3a8a73e4362263
treebe4bc5caf0627181ded8647c74ccb45ec0db0df2
parent9932ce33156305d7ebe3c8192bda8f1450f20b2a
Bug 24031: Add plugin hook after_hold_create

It is called after a hold has been placed

Test plan:
1. Write a plugin that implements only after_hold_create (see
   `perldoc Koha::Plugins` for implementation details). Install it and
   enable it
2. Place a hold and verify that your plugin method has been called with
   the right parameters

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Pasi Kallinen <pasi.kallinen@koha-suomi.fi>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Reserves.pm
Koha/Plugins.pm
t/db_dependent/Koha/Plugins/Plugins.t