[Rt-commit] rt branch, 4.2/sort-onetime-recipients, created. rt-4.2.13-88-g37151b1
Shawn Moore
shawn at bestpractical.com
Fri Dec 30 17:37:19 EST 2016
The branch, 4.2/sort-onetime-recipients has been created
at 37151b1b143e77b91d69ebf3b79531fc102b825c (commit)
- Log -----------------------------------------------------------------
commit 37151b1b143e77b91d69ebf3b79531fc102b825c
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Fri Dec 30 22:35:02 2016 +0000
Sort One-time Cc and One-time Bcc addresses
This was written in such a way that the list is sorted before providing
it to the BeforeCc callback. That way the callback can reorder the list
if desired (e.g. by putting local addresses first), or at the very least
continue receiving the email addresses in the same order as will be
displayed on the page (important for RT::Extension::OneTimeTo)
Fixes: I#31879
diff --git a/share/html/Ticket/Elements/UpdateCc b/share/html/Ticket/Elements/UpdateCc
index bb65553..d0c4ea9 100644
--- a/share/html/Ticket/Elements/UpdateCc
+++ b/share/html/Ticket/Elements/UpdateCc
@@ -98,4 +98,6 @@ foreach my $addr ( keys %txn_addresses) {
next if ( grep {$addr eq $_} @req_addresses );
push @one_time_Ccs,$addr;
}
+
+ at one_time_Ccs = sort @one_time_Ccs;
</%init>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list