X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FShowSimplifiedRecipients;h=a27375aa1a44d02ed6039b4303ed1332e67e5e46;hb=679854b8bbc65d112071111bbd7f34a6a481fb30;hp=590006b535f601e0d8211ddbbe83663836cd65ce;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/rt/share/html/Ticket/Elements/ShowSimplifiedRecipients b/rt/share/html/Ticket/Elements/ShowSimplifiedRecipients index 590006b53..a27375aa1 100644 --- a/rt/share/html/Ticket/Elements/ShowSimplifiedRecipients +++ b/rt/share/html/Ticket/Elements/ShowSimplifiedRecipients @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -73,16 +73,17 @@ if ($Object->Rules) { } } my %recips; +my %squelched = ProcessTransactionSquelching( \%ARGS ); <&|/Widgets/TitleBox, title => loc('Recipients'), id => 'recipients' &> - % for my $type (qw(To Cc Bcc)) { % next unless keys %{$headers{$type}}; + % } +% $m->callback( CallbackName => 'AfterRecipients', TicketObj => $TicketObj );
<% $type %>: % for my $addr (sort {$a->address cmp $b->address} values %{$headers{$type}}) { -% my $checked = 1; +% my $checked = not $squelched{$addr->address}; % $m->callback(CallbackName => 'BeforeAddress', Ticket => $TicketObj, Address => $addr, Type => $type, Checked => \$checked); % $recips{$addr->address}++; value="<%$addr->address%>" id="TxnSendMailTo-<% $addr->address %>-<% $recips{$addr->address} %>" /> @@ -92,6 +93,7 @@ my %recips; % }
(Uncheck boxes to disable notifications to the listed recipients. Does not change who will receive future