[Rt-commit] r4231 - in rtir/branches/1.9-EXPERIMENTAL: .
html/Callbacks/RTIR/Ticket/Elements/ShowMessageHeaders
ruz at bestpractical.com
ruz at bestpractical.com
Sun Dec 4 19:06:02 EST 2005
Author: ruz
Date: Sun Dec 4 19:06:00 2005
New Revision: 4231
Added:
rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Elements/ShowMessageHeaders/Default
- copied, changed from r3987, rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Elements/ShowMessageHeaders/Headers
Removed:
rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Elements/ShowMessageHeaders/Headers
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
Log:
r410 at cubic-pc: cubic | 2005-12-05 03:09:06 +0300
r375 at cubic-pc: cubic | 2005-11-24 04:20:34 +0300
* update callback according to the changes in ShowMessageHeaders
Copied: rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Elements/ShowMessageHeaders/Default (from r3987, rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Elements/ShowMessageHeaders/Headers)
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Elements/ShowMessageHeaders/Headers (original)
+++ rtir/branches/1.9-EXPERIMENTAL/html/Callbacks/RTIR/Ticket/Elements/ShowMessageHeaders/Default Sun Dec 4 19:06:00 2005
@@ -1,15 +1,10 @@
<%init>
-return if $display_headers{'_all'};
-my $i = 0;
-while ($i < scalar @headers) {
- $i++;
- next unless ($display_headers{lc($headers[$i-1]->{'Tag'})});
- $m->comp('/RTIR/Elements/MakeClicky', content => \$headers[$i-1]->{'Value'});
+foreach my $f (@headers) {
+ next unless $display_headers{'_all'} || $display_headers{ lc $f->{'Tag'} };
+ $m->comp('/RTIR/Elements/MakeClicky', content => \$f->{'Value'});
}
</%init>
<%ARGS>
-$Transaction => undef
-$content => undef
%display_headers => undef
- at headers => undef
+ at headers => undef
</%ARGS>
More information about the Rt-commit
mailing list