[Bps-public-commit] r10979 - RT-Extension-Reports/html/Reports/Types

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Mar 3 08:38:50 EST 2008


Author: sunnavy
Date: Mon Mar  3 08:38:48 2008
New Revision: 10979

Modified:
   RT-Extension-Reports/html/Reports/Types/Created

Log:
There's IsActiveStatus in Queue.pm reminded by obra++, I should be more familiar with the core's methods.

Modified: RT-Extension-Reports/html/Reports/Types/Created
==============================================================================
--- RT-Extension-Reports/html/Reports/Types/Created	(original)
+++ RT-Extension-Reports/html/Reports/Types/Created	Mon Mar  3 08:38:48 2008
@@ -133,12 +133,13 @@
         }
         $data{$ticket->CreatedObj->Date}{$ticket->QueueObj->Name}[0]++; # Created
         if ( $Type eq 'verbose' ) {
-            require RT::Extension::Reports::Util;
-            if ( RT::Extension::Reports::Util::is_open($ticket) ) {
-                $data{$ticket->CreatedObj->Date}{$ticket->QueueObj->Name}[1]++; # Resolved
+            if ( $ticket->QueueObj->IsActiveStatus( $ticket->Status ) ) {
+                $data{$ticket->CreatedObj->Date}{$ticket->QueueObj->Name}[1]++;
+# Active
             }
             else {
-                $data{$ticket->CreatedObj->Date}{$ticket->QueueObj->Name}[2]++; # Open
+                $data{$ticket->CreatedObj->Date}{$ticket->QueueObj->Name}[2]++;
+# Inactive
             }
         }
     }



More information about the Bps-public-commit mailing list