[Rt-commit] [svn] r1956 - in rt/branches/3.3-TESTING: . lib/RT

jesse at pallas.eruditorum.org jesse at pallas.eruditorum.org
Sun Dec 5 16:58:07 EST 2004


Author: jesse
Date: Sun Dec  5 16:58:06 2004
New Revision: 1956

Modified:
   rt/branches/3.3-TESTING/   (props changed)
   rt/branches/3.3-TESTING/lib/RT/Ticket_Overlay.pm
Log:
 r9451 at tinbook:  jesse | 2004-12-03T22:42:17.243639Z
  r9450 at tinbook:  jesse | 2004-12-03T22:39:34.093758Z
  Refactoring to use the API to determine if a ticket is being closed, rather than looking at a hardcoded status.  -- Stephen Quinney
  
 


Modified: rt/branches/3.3-TESTING/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.3-TESTING/lib/RT/Ticket_Overlay.pm	(original)
+++ rt/branches/3.3-TESTING/lib/RT/Ticket_Overlay.pm	Sun Dec  5 16:58:06 2004
@@ -3139,9 +3139,9 @@
                      RecordTransaction => 0 );
     }
 
-    if ( $args{Status} =~ /^(resolved|rejected|dead)$/ ) {
-
-        #When we resolve a ticket, set the 'Resolved' attribute to now.
+    #When we close a ticket, set the 'Resolved' attribute to now.
+    # It's misnamed, but that's just historical.
+    if ( $self->QueueObj->IsInactiveStatus($args{Status}) ) {
         $self->_Set( Field             => 'Resolved',
                      Value             => $now->ISO,
                      RecordTransaction => 0 );


More information about the Rt-commit mailing list