Comment 8 for bug 1777677

Revision history for this message
Bill Erickson (berick) wrote :

Kyle, I believe you need to add some environment variables to your new event definitions. See for example: select * from action_trigger.environment where event_def = 1;

Those define the in-template fleshing behavior. The API itself does not need to flesh the user object.

Also, the open-ils.actor.event.test_notification should check a permission (e.g. UPDATE_USER at patron->home_ou) to prevent abuse. And I suggest it exit early with $e->event if the $$args{target} does not refer to a valid user to avoid unnecessary processing.