<div dir="ltr"><div>I wouldn't add other hooks, they are "_after_item_action_hooks" for creation and modification.</div><div>"After item creation" should allow you to modify the item, unless we need a "pre store" hook.<br></div><div>I had a look at the code and I didn't find any problems.</div><div>Fridolin, what did you try exactly, can you share the code?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 8 mars 2021 à 11:17, Tomas Cohen Arazi <<a href="mailto:tomascohen@gmail.com">tomascohen@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Maybe you need some other hook. Ones that allows you to make changes to the object right before it is stored instead of this one, that gets the 'just updated' object.<div>When I added 'after' hooks for biblios and items actions, the idea was that they should act as triggers for other actions: in my case, fill a zebraqueue-ish table my plugin uses.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun, 8 mar 2021 a las 5:11, Fridolin SOMERS (<<a href="mailto:fridolin.somers@biblibre.com" target="_blank">fridolin.somers@biblibre.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
While testing new hook :<br>
<a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27066" rel="noreferrer" target="_blank">https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27066</a><br>
<br>
I faced a problem :<br>
How can I modify the current patron object ?<br>
Since we are in the store() method of that object and inside a transation.<br>
I tried to call $self->SUPER::store(); but does not work.<br>
<br>
Should we implement this possiblity or document hooks to say it is <br>
impossible.<br>
<br>
Thanks a lot for your help :D<br>
<br>
Best regards,<br>
<br>
-- <br>
Fridolin SOMERS <<a href="mailto:fridolin.somers@biblibre.com" target="_blank">fridolin.somers@biblibre.com</a>><br>
Software and system maintainer 🦄<br>
BibLibre, France<br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="https://www.koha-community.org/" rel="noreferrer" target="_blank">https://www.koha-community.org/</a><br>
git : <a href="https://git.koha-community.org/" rel="noreferrer" target="_blank">https://git.koha-community.org/</a><br>
bugs : <a href="https://bugs.koha-community.org/" rel="noreferrer" target="_blank">https://bugs.koha-community.org/</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px">Tomás Cohen Arazi</div><div style="font-size:12.8px">Theke Solutions (<a href="http://theke.io/" target="_blank">http://theke.io</a>)<br>✆ +54 9351 3513384<br>GPG: B2F3C15F</div></div></div></div></div>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="https://www.koha-community.org/" rel="noreferrer" target="_blank">https://www.koha-community.org/</a><br>
git : <a href="https://git.koha-community.org/" rel="noreferrer" target="_blank">https://git.koha-community.org/</a><br>
bugs : <a href="https://bugs.koha-community.org/" rel="noreferrer" target="_blank">https://bugs.koha-community.org/</a><br>
</blockquote></div>