X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FApproval%2FRule.pm;h=13247837893ae39525c72e5eac8163b38f409660;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=4201240609013e0e50c38699fbada0c75ed131cc;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984;p=freeside.git diff --git a/rt/lib/RT/Approval/Rule.pm b/rt/lib/RT/Approval/Rule.pm index 420124060..132478378 100644 --- a/rt/lib/RT/Approval/Rule.pm +++ b/rt/lib/RT/Approval/Rule.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -57,7 +57,11 @@ use constant _Queue => '___Approvals'; sub Prepare { my $self = shift; return unless $self->SUPER::Prepare(); - $self->TicketObj->Type eq 'approval'; + if (($self->TicketObj->__Value('Type')||'') eq 'approval') { + return 1; + } else { + return undef + } } sub GetTemplate {