[Koha-bugs] [Bug 31734] Hooks for account, recall, indexing and more actions for holds.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 11 15:15:12 CEST 2022


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

--- Comment #1 from Stefan Berndtsson <stefan.berndtsson at ub.gu.se> ---
Created attachment 141602
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=141602&action=edit
Bug 31734: Extend hooks for plugins

Hooks added:
after_account_action / add in Koha::Account::add_credit when adding credit for
payment or writeoff.
after_hold_action / transfer, waiting and processing in Koha::Hold::set_*
after_recall_action / add in Koha::Recalls::add_recall when adding recall
before_index_action / update in
Koha::SearchEngine::Elasticsearch::Indexer::update_index before actually
updating the index

Tests added for all new hooks.

How to test:
1) Run tests in t/db_dependent/Koha/Plugins/Account_hooks.t
2) Run tests in t/db_dependent/Koha/Plugins/Elasticsearch_Indexer_hooks.t
3) Run tests in t/db_dependent/Koha/Plugins/Holds_hooks.t
4) Run tests in t/db_dependent/Koha/Plugins/Recall_hooks.t

Sponsored by: Gothenburg University Library

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


More information about the Koha-bugs mailing list