https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40984
--- Comment #15 from Marcel de Rooy <[email protected]> --- (In reply to Martin Renvoize (ashimema) from comment #12) > Hi Marcel, > > Thanks for the QA, and for the careful read. > > On your second point, I agree. after_biblio_action only passes biblio and > biblio_id, and the point of this bug is to keep the two hooks in sync, so I > have removed "record" from the after_authority_action payload. Plugins that > need it can use the authority object (authority->record). The payload is now > authority and authority_id, matching biblio. > > I have attached a small follow-up patch with that change. The test plugin > now reports the payload keys it receives, and the tests check that only > authority and authority_id are in the payload. I also checked that the test > fails if "record" is added back. > > On the first note about the name "record" in before_authority_action: you > are right that it is the MARC record and could be mistaken for an object. I > have kept it as it is, because it matches before_biblio_action and I would > rather stay consistent. Happy to revisit the naming for both hooks together > in a separate bug if we want something clearer. > > I am setting this back to Signed Off so that you can check the final change > and move it to Passed QA yourself. Thx. -- 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/
