From 6870babd1be7976dc8823c46a66254ee977c8cd1 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 10 Dec 2015 01:01:21 -0800 Subject: fix some problems with creation of subtask tickets, #34061 --- rt/lib/RT/Condition/CustomFieldEquals.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rt/lib') 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; } -- cgit v1.2.1