diff options
author | Mark Wells <mark@freeside.biz> | 2015-12-10 01:01:21 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-12-10 01:03:48 -0800 |
commit | bae965143e7933331a608eb8f2a56bba0a844a3c (patch) | |
tree | d24409c02c1ec6ae76cda184025e29fbbdc29877 /rt/lib/RT/Condition/CustomFieldEquals.pm | |
parent | 93606bc1854625bfffb8316630bbd4d987d161ec (diff) |
fix some problems with creation of subtask tickets, #34061
Diffstat (limited to 'rt/lib/RT/Condition/CustomFieldEquals.pm')
-rw-r--r-- | rt/lib/RT/Condition/CustomFieldEquals.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rt/lib/RT/Condition/CustomFieldEquals.pm b/rt/lib/RT/Condition/CustomFieldEquals.pm index 69dedcbca..8ebf94b2b 100644 --- a/rt/lib/RT/Condition/CustomFieldEquals.pm +++ b/rt/lib/RT/Condition/CustomFieldEquals.pm @@ -28,9 +28,10 @@ sub IsApplicable { if ($trans->Type eq 'CustomField') { my $cf = RT::CustomField->new($self->CurrentUser); $cf->Load($field); - return $trans->Field == $cf->Id - and ($trans->NewValue eq $value) - and ($trans->OldValue ne $value) + return ( $trans->Field == $cf->Id + and $trans->NewValue eq $value + and $trans->OldValue ne $value + ); } return undef; } |