[Rt-commit] [svn] r1955 - in rt/branches/3.2-RELEASE: . lib/RT
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Fri Dec 3 17:45:53 EST 2004
Author: jesse
Date: Fri Dec 3 17:45:52 2004
New Revision: 1955
Modified:
rt/branches/3.2-RELEASE/ (props changed)
rt/branches/3.2-RELEASE/lib/RT/Ticket_Overlay.pm
Log:
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.2-RELEASE/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.2-RELEASE/lib/RT/Ticket_Overlay.pm (original)
+++ rt/branches/3.2-RELEASE/lib/RT/Ticket_Overlay.pm Fri Dec 3 17:45:52 2004
@@ -3209,9 +3209,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