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:02:47 -0800 |
commit | 6870babd1be7976dc8823c46a66254ee977c8cd1 (patch) | |
tree | 6a313514a5821d33105120b9c767bacf201d3b85 /rt/lib | |
parent | 41dcb76c7a2cd0f020e4eb360944b99dae10c2a4 (diff) |
fix some problems with creation of subtask tickets, #34061
Diffstat (limited to 'rt/lib')
-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 69dedcb..8ebf94b 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; } |