X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FShowSimplifiedRecipients;h=73c1fd9d29a0b46ff5bb6108066e74bfd8409fdc;hp=590006b535f601e0d8211ddbbe83663836cd65ce;hb=919e930aa9279b3c5cd12b593889cd6de79d67bf;hpb=6587f6ba7d047ddc1686c080090afe7d53365bd4 diff --git a/rt/share/html/Ticket/Elements/ShowSimplifiedRecipients b/rt/share/html/Ticket/Elements/ShowSimplifiedRecipients index 590006b53..73c1fd9d2 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-2015 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