X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FPreviewScrips;h=60f22ca6ae9225a3e20bdc0251fa7d60bef3e9d8;hb=7322f2afedcc2f427e997d1535a503613a83f088;hp=75fbc456316b91bc13d31998c4605973447764e7;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/Ticket/Elements/PreviewScrips b/rt/share/html/Ticket/Elements/PreviewScrips index 75fbc4563..60f22ca6a 100755 --- a/rt/share/html/Ticket/Elements/PreviewScrips +++ b/rt/share/html/Ticket/Elements/PreviewScrips @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -52,6 +52,8 @@ $TicketObj => undef my $Object = $m->notes("DryRun-".$TicketObj->Id) || $TicketObj->DryRun(%ARGS); my %recips = %{ $m->notes("DryRun-Recipients-".$TicketObj->Id) || {} }; return unless $Object; + +my %squelched = ProcessTransactionSquelching( \%ARGS );

<&|/l, RT->Config->Get('WebPath')."/Ticket/ModifyPeople.html?id=".$TicketObj->Id, @@ -67,7 +69,7 @@ return unless $Object; % @{$Object->Scrips->Prepared}; % for my $scrip (@scrips) { <% $scrip->Description || loc('Scrip #[_1]',$scrip->id) %>
- <&|/l, loc($scrip->ConditionObj->Name), loc($scrip->ActionObj->Name), loc($scrip->TemplateObj->Name)&>[_1] [_2] with template [_3] + <&|/l, loc($scrip->ConditionObj->Name), loc($scrip->ActionObj->Name), loc($scrip->Template)&>[_1] [_2] with template [_3]
% for my $type (qw(To Cc Bcc)) { % my @addresses = $scrip->ActionObj->Action->$type(); @@ -75,7 +77,7 @@ return unless $Object;

% } % if (RT->Config->Get('PreviewScripMessages')) { - + % }
% } % } -% if ( $Object->Rules ) { -% for my $rule (@{$Object->Rules}) { -% next unless $rule->{hints} && $rule->{hints}{class} eq 'SendEmail'; - <% $rule->Describe %> -% my $data = $rule->{hints}{recipients}; -% for my $type (qw(To Cc Bcc)) { -% next unless @{$data->{$type}}; - -% } -
-% } -% } +% $m->callback( CallbackName => 'AfterRecipients', TicketObj => $TicketObj ); % $m->notes("DryRun-Recipients-".$TicketObj->Id, \%recips);