From 73e3fe50f93fa4fc61e826d7cc5d9eee9a5289d1 Mon Sep 17 00:00:00 2001 From: blake Date: Tue, 18 Feb 2020 16:28:50 -0600 Subject: [PATCH] LP#1849736 Add action trigger for email/sms for patron self registration Removed double blank lines at the top of the stock AT Email template. Signed-off-by: blake Signed-off-by: Terran McCanna Signed-off-by: Chris Sharp --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 5 ++--- .../src/sql/Pg/upgrade/XXXX.lp1849736_at_email_self_register.sql | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index b0d5d68875..ee5b465e02 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -10410,9 +10410,8 @@ VALUES INSERT INTO action_trigger.event_definition(active,owner,name,hook,validator,reactor,delay,max_delay,delay_field,group_field,template,retention_interval) -SELECT 'f',1,'Patron Registered for a card stgu.created','stgu.created','NOOP_True','SendEmail','00:01:00'::interval,'1 day'::interval,'row_date','home_ou',$$ - -[%- USE date -%] +SELECT 'f',1,'Patron Registered for a card stgu.created','stgu.created','NOOP_True','SendEmail','00:01:00'::interval,'1 day'::interval,'row_date','home_ou', +$$[%- USE date -%] [%- lib = target.0.home_ou -%] To: [% lib.name %] <[% params.recipient_email || helpers.get_org_setting(target.0.home_ou.id, 'org.bounced_emails') || lib.email || default_sender %]> From: [% lib.name %] <[% helpers.get_org_setting(target.0.home_ou.id, 'org.bounced_emails') || lib.email || params.recipient_email || default_sender %]> diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1849736_at_email_self_register.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1849736_at_email_self_register.sql index 799e5d57dd..9f5e41aee9 100755 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1849736_at_email_self_register.sql +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.lp1849736_at_email_self_register.sql @@ -10,9 +10,8 @@ VALUES INSERT INTO action_trigger.event_definition(active,owner,name,hook,validator,reactor,delay,max_delay,delay_field,group_field,template,retention_interval) -SELECT 'f',1,'Patron Registered for a card stgu.created','stgu.created','NOOP_True','SendEmail','00:01:00'::interval,'1 day'::interval,'row_date','home_ou',$$ - -[%- USE date -%] +SELECT 'f',1,'Patron Registered for a card stgu.created','stgu.created','NOOP_True','SendEmail','00:01:00'::interval,'1 day'::interval,'row_date','home_ou', +$$[%- USE date -%] [%- lib = target.0.home_ou -%] To: [% lib.name %] <[% params.recipient_email || helpers.get_org_setting(target.0.home_ou.id, 'org.bounced_emails') || lib.email || default_sender %]> From: [% lib.name %] <[% helpers.get_org_setting(target.0.home_ou.id, 'org.bounced_emails') || lib.email || params.recipient_email || default_sender %]> @@ -45,4 +44,4 @@ event_def=(SELECT id FROM action_trigger.event_definition WHERE name='Patron Reg AND path='home_ou'); -COMMIT; \ No newline at end of file +COMMIT; -- 2.11.0