LP#1849736 Add action trigger for email/sms for patron self registration
authorblake <blake@mobiusconsortium.org>
Tue, 18 Feb 2020 22:28:50 +0000 (16:28 -0600)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 21 Feb 2020 18:41:12 +0000 (13:41 -0500)
Removed double blank lines at the top of the stock AT Email template.

Signed-off-by: blake <blake@mobiusconsortium.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.lp1849736_at_email_self_register.sql

index b0d5d68..ee5b465 100644 (file)
@@ -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 %]>
index 799e5d5..9f5e41a 100755 (executable)
@@ -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;