summaryrefslogtreecommitdiff
path: root/rt/lib/RT/Approval/Rule.pm
diff options
context:
space:
mode:
Diffstat (limited to 'rt/lib/RT/Approval/Rule.pm')
-rw-r--r--rt/lib/RT/Approval/Rule.pm8
1 files changed, 6 insertions, 2 deletions
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
# <sales@bestpractical.com>
#
# (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 {