[Rt-commit] r4509 - in rtir/branches/1.9-EXPERIMENTAL: lib/RT/Action
ruz at bestpractical.com
ruz at bestpractical.com
Thu Feb 9 09:12:57 EST 2006
Author: ruz
Date: Thu Feb 9 09:12:55 2006
New Revision: 4509
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/lib/RT/Action/RTIR_ResolveChildren.pm
Log:
Modified: rtir/branches/1.9-EXPERIMENTAL/lib/RT/Action/RTIR_ResolveChildren.pm
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/lib/RT/Action/RTIR_ResolveChildren.pm (original)
+++ rtir/branches/1.9-EXPERIMENTAL/lib/RT/Action/RTIR_ResolveChildren.pm Thu Feb 9 09:12:55 2006
@@ -57,12 +57,10 @@
sub Prepare {
my $self = shift;
+ my @inactive = $self->TicketObj->QueueObj->InactiveStatusArray;
+ my $new_status = $self->TransactionObj->NewValue;
- unless ( $self->TransactionObj->NewValue eq 'resolved' ||
- $self->TransactionObj->NewValue eq 'rejected' )
- {
- return 0;
- }
+ return 0 unless grep $_ eq $new_status, @inactive;
return 1;
}
More information about the Rt-commit
mailing list