diff options
author | ivan <ivan> | 2002-08-12 06:17:09 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-08-12 06:17:09 +0000 |
commit | 3ef62a0570055da710328937e7f65dbb2c027c62 (patch) | |
tree | d549158b172fd499b4f81a2981b62aabbde4f99b /rt/lib/RT/Condition/StatusChange.pm | |
parent | 030438c9cb1c12ccb79130979ef0922097b4311a (diff) |
import rt 2.0.14
Diffstat (limited to 'rt/lib/RT/Condition/StatusChange.pm')
-rw-r--r-- | rt/lib/RT/Condition/StatusChange.pm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/rt/lib/RT/Condition/StatusChange.pm b/rt/lib/RT/Condition/StatusChange.pm new file mode 100644 index 000000000..56419b2c7 --- /dev/null +++ b/rt/lib/RT/Condition/StatusChange.pm @@ -0,0 +1,30 @@ +# $Header: /home/cvs/cvsroot/freeside/rt/lib/RT/Condition/StatusChange.pm,v 1.1 2002-08-12 06:17:08 ivan Exp $ +# Copyright 1996-2001 Jesse Vincent <jesse@fsck.com> +# Released under the terms of the GNU General Public License + +package RT::Condition::StatusChange; +require RT::Condition::Generic; + +@ISA = qw(RT::Condition::Generic); + + +=head2 IsApplicable + +If the argument passed in is equivalent to the new value of +the Status Obj + +=cut + +sub IsApplicable { + my $self = shift; + if (($self->TransactionObj->Field eq 'Status') and + ($self->Argument eq $self->TransactionObj->NewValue())) { + return(1); + } + else { + return(undef); + } +} + +1; + |