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

--- Comment #11 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211363
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211363&action=edit
Bug 40984: (QA follow-up) Don't pass record in the after_authority_action
payload

after_biblio_action only passes biblio and biblio_id in its payload. The
authority hook added the MARC record as well, which made the two hooks
differ. Plugins that want it can get it from the authority object
(authority->record), so remove it from the payload to keep both hooks in
sync.

The test plugin now reports the keys of the payload it receives, and
the tests check that the payload only holds authority and authority_id.

To test:
1. prove t/db_dependent/Koha/Plugins/authority_hooks.t
2. prove t/db_dependent/Koha/Plugins/ t/db_dependent/AuthoritiesMarc.t
3. All tests should pass

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to