X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FApproval%2FRule.pm;h=85526c1d8b25128bebb30d38ca9570ecd3e015f1;hb=33beebf4cb42eba3e1dd868ad5e0af102de961da;hp=4201240609013e0e50c38699fbada0c75ed131cc;hpb=7ac86daf67b0a95153b736d5811f9050363f6553;p=freeside.git diff --git a/rt/lib/RT/Approval/Rule.pm b/rt/lib/RT/Approval/Rule.pm index 420124060..85526c1d8 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-2012 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 {