LP1858213 A/T require email and stamp user id user/berick/lp1858213-at-stamp-user-and-email
authorBill Erickson <berickxx@gmail.com>
Fri, 3 Jan 2020 16:07:22 +0000 (11:07 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 3 Jan 2020 22:31:08 +0000 (17:31 -0500)
commit68e5dd6c856418869e01d9a14176d56fbf8dca8c
tree71465433007f8e0e0b3990d4429bf4dcc092619d
parent2cd405314e31fdb6f2882b60b1224c47dce46d42
LP1858213 A/T require email and stamp user id

Add require_usr_email flag to action_trigger.event_definition.  When set
and a usr_field is defined, only events for users with email addresses
will be created.

Adds a new column to action_trigger.event for tracking the related user
id.  At event collection time, if an event_definition has a usr_field,
the id value is added to the event.

Includes updates to set 'usr_field' values for existing event
definitions where possible and to set the require_usr_email flag for
SendEmail defs that have a usr_field.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.at-usr-additions.sql [new file with mode: 0644]