[freeside-commits] freeside/rt/share/html/Elements/RT__Ticket ColumnMap, 1.1.1.2, 1.2
Ivan,,,
ivan at wavetail.420.am
Wed Jul 21 03:31:17 PDT 2010
Update of /home/cvs/cvsroot/freeside/rt/share/html/Elements/RT__Ticket
In directory wavetail.420.am:/tmp/cvs-serv27937/share/html/Elements/RT__Ticket
Modified Files:
ColumnMap
Log Message:
show customers in ticket lists, RT#8784
Index: ColumnMap
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/share/html/Elements/RT__Ticket/ColumnMap,v
retrieving revision 1.1.1.2
retrieving revision 1.2
diff -u -w -d -r1.1.1.2 -r1.2
--- ColumnMap 18 May 2010 18:46:00 -0000 1.1.1.2
+++ ColumnMap 21 Jul 2010 10:31:15 -0000 1.2
@@ -313,6 +313,25 @@
return \$bookmark;
},
},
+
+ Customer => {
+ title => 'Customer', #loc
+ attribute => 'Customer', #title/attribute/name... what does it all mean?
+ value => sub {
+ my $Ticket = shift;
+ my @Customers = @{ $Ticket->Customers->ItemsArrayRef };
+ my @CustResolvers = map $_->TargetURI->Resolver, @Customers;
+ my @return = ();
+ for ( 0 .. $#CustResolvers ) {
+ my $c = @CustResolvers[$_];
+ push @return, \'<A HREF="', $c->HREF, \'">', $c->AsString, \'</A>';
+ push @return, \'<BR>' if scalar(@CustResolvers) > 1
+ && $_ != $#CustResolvers;
+ }
+ @return;
+ },
+ },
+
};
# if no GPG support, then KeyOwnerName and KeyRequestors fall back to the regular
More information about the freeside-commits
mailing list