X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FApproval%2FRule.pm;h=9bf39f03d97cb77beec7f297ffa9d7e18e66b758;hb=7322f2afedcc2f427e997d1535a503613a83f088;hp=4201240609013e0e50c38699fbada0c75ed131cc;hpb=75162bb14b3e38d66617077843f4dfdcaf09d5c4;p=freeside.git diff --git a/rt/lib/RT/Approval/Rule.pm b/rt/lib/RT/Approval/Rule.pm index 420124060..9bf39f03d 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-2016 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 {