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

--- Comment #1 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 187653
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187653&action=edit
Bug 40984: Synchronize before_ and after_authority_action hooks with biblio
action hooks

This patch updates the authority action plugin hooks to match the
signature and behavior of the biblio action hooks:

1. Created before_authority_action hook that is called before authority
   records are saved, allowing plugins to modify records before they are
   stored in the database

2. Updated after_authority_action hook to use a payload parameter
   containing authority, authority_id, and record, matching the pattern
   used by after_biblio_action hook

3. Maintained backward compatibility by passing both old parameters
   (authority, authority_id) and new payload parameter, with deprecation
   warnings logged when plugins implement the hook

4. Updated test plugin to use new payload-based signatures for both hooks

5. Added test coverage for before_authority_action hook

Test plan:
1. Run: prove t/db_dependent/Koha/Plugins/authority_hooks.t
2. Run: prove t/db_dependent/Koha/Plugins/
3. All tests should pass

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to