Updated facilitators email process and captured race condition.
This commit is contained in:
parent
33b2bdcd57
commit
e4a535f333
@ -1,4 +1,4 @@
|
||||
Subject: AutoReply: {$Ticket->Subject}
|
||||
Subject: {$Ticket->Subject}
|
||||
Content-Type: text/html
|
||||
|
||||
<p>Congratulations! You have received a referral from the Davis Facilitator Directory. You can find the details of the lead by going to https://support.davismethod.com/form?id={$Ticket->id}&email={$Ticket->FirstCustomFieldValue('Facilitator Email')}&uuid={$Ticket->FirstCustomFieldValue('uuid')}.<p>
|
||||
@ -7,6 +7,3 @@ Content-Type: text/html
|
||||
|
||||
<p>The Davis Team</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -25,8 +25,13 @@ require RT::Action::SendEmail;
|
||||
use strict;
|
||||
use vars qw/@ISA/;
|
||||
@ISA = qw(RT::Action::SendEmail);
|
||||
$self->SetRecipients();
|
||||
|
||||
#STOP RACE CONDITION!
|
||||
if ($self->TicketObj->Status() ne "Hub Not Assigned") {
|
||||
return 0;
|
||||
}
|
||||
|
||||
$self->SetRecipients();
|
||||
$self->SUPER::Prepare();
|
||||
$self->SUPER::Commit();
|
||||
sub SetRecipients {
|
||||
@ -45,6 +50,8 @@ my $creator = "Davis Admin";
|
||||
|
||||
1;
|
||||
|
||||
|
||||
|
||||
# Custom action commit code:
|
||||
#Move to Redacted Facilitator email sent.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user