projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT 4.0.13
[freeside.git]
/
rt
/
lib
/
RT
/
Rule.pm
diff --git
a/rt/lib/RT/Rule.pm
b/rt/lib/RT/Rule.pm
index
86ff63d
..
c5c8b09
100644
(file)
--- a/
rt/lib/RT/Rule.pm
+++ b/
rt/lib/RT/Rule.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
1
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
3
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-49,15
+49,24
@@
package RT::Rule;
use strict;
use warnings;
package RT::Rule;
use strict;
use warnings;
+
use base 'RT::Action';
use constant _Stage => 'TransactionCreate';
use constant _Queue => undef;
use base 'RT::Action';
use constant _Stage => 'TransactionCreate';
use constant _Queue => undef;
+
+
sub Prepare {
my $self = shift;
sub Prepare {
my $self = shift;
- return (0) if $self->_Queue && $self->TicketObj->QueueObj->Name ne $self->_Queue;
- return 1;
+ if ( $self->_Queue ) {
+ my $queue = RT::Queue->new( RT->SystemUser );
+ $queue->Load( $self->TicketObj->__Value('Queue') );
+ if ( $queue->Name ne $self->_Queue ) {
+ return (0);
+ }
+ return 1;
+ }
}
sub Commit {
}
sub Commit {