[Rt-commit] r12923 - in rt/branches/3.8-TESTING: .

alexmv at bestpractical.com alexmv at bestpractical.com
Thu Jun 5 13:13:27 EDT 2008


Author: alexmv
Date: Thu Jun  5 13:13:26 2008
New Revision: 12923

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/share/html/Elements/RT__Ticket/ColumnMap

Log:
 r32588 at kohr-ah:  chmrr | 2008-06-05 13:13:22 -0400
 RT-Ticket: 7573
 RT-Status: resolved
 RT-Update: comment
 
  * Only highlight due dates in the past if the ticket is still active
 


Modified: rt/branches/3.8-TESTING/share/html/Elements/RT__Ticket/ColumnMap
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Elements/RT__Ticket/ColumnMap	(original)
+++ rt/branches/3.8-TESTING/share/html/Elements/RT__Ticket/ColumnMap	Thu Jun  5 13:13:26 2008
@@ -184,7 +184,8 @@
         attribute => 'Due',
         value     => sub { 
             my $date = $_[0]->DueObj;
-            if ( $date && $date->Unix > 0 && $date->Diff < 0 ) {
+            # Highlight the date if it was due in the past, and it's still active
+            if ( $date && $date->Unix > 0 && $date->Diff < 0 && $_[0]->Queue->IsActiveStatus($_[0]->Status)) {
                 return (\'<span class="overdue">' , $date->AgeAsString , \'</span>');
             } else {
                 return $date->AgeAsString;


More information about the Rt-commit mailing list