[Rt-commit] r13416 - rt/3.8/trunk/lib/RT/Report

ruz at bestpractical.com ruz at bestpractical.com
Thu Jun 19 09:00:49 EDT 2008


Author: ruz
Date: Thu Jun 19 09:00:49 2008
New Revision: 13416

Modified:
   rt/3.8/trunk/lib/RT/Report/Tickets.pm

Log:
* add charting by watchers

Modified: rt/3.8/trunk/lib/RT/Report/Tickets.pm
==============================================================================
--- rt/3.8/trunk/lib/RT/Report/Tickets.pm	(original)
+++ rt/3.8/trunk/lib/RT/Report/Tickets.pm	Thu Jun 19 09:00:49 2008
@@ -59,6 +59,10 @@
     my %args = (@_);
     my @fields = qw(
         Owner
+        Requestor
+        Cc
+        AdminCc
+        Watcher
         Creator
         LastUpdatedBy
         Status
@@ -195,6 +199,10 @@
             my ($ticket_cf_alias, $cf_alias) = $self->_CustomFieldJoin($cf->id, $cf->id, $cf_name);
             @args{qw(ALIAS FIELD)} = ($ticket_cf_alias, 'Content');
         }
+    } elsif ( $field =~ /^(?:Watcher|(Requestor|Cc|AdminCc))$/ ) {
+        my $type = $1;
+        my ($g_alias, $gm_alias, $u_alias) = $self->_WatcherJoin( $type );
+        @args{qw(ALIAS FIELD)} = ($u_alias, 'Name');
     }
     return %args;
 }


More information about the Rt-commit mailing list