[Rt-commit] [rtir] 01/01: This code will happily load a Disabled Queue and use it

Kevin Falcone falcone at bestpractical.com
Thu Jul 17 16:10:41 EDT 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 3.0/dont-use-disabled-queue
in repository rtir.

commit bfec1f4d0bd2d503b1082c387452725d0381123b
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Sat Jul 12 15:34:29 2014 -0400

    This code will happily load a Disabled Queue and use it
    
    If you've tried to go away from Constituency queues, you may have
    disabled Queues.  If that Queue has an empty CorrespondAddress, you'll
    get warnings before RTIR falls back to the Global settings.  If it has a
    CorrespondAddress, RTIR will try to use that instead.
---
 lib/RT/IR.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/RT/IR.pm b/lib/RT/IR.pm
index c409843..3893c87 100644
--- a/lib/RT/IR.pm
+++ b/lib/RT/IR.pm
@@ -771,7 +771,7 @@ if ( RT::IR->HasConstituency ) {
                 my $new_queue = RT::Queue->new(RT->SystemUser);
                 $new_queue->LoadByCols(
                     Name => $queue->Name . " - " . $const );
-                if ( $new_queue->id ) {
+                if ( $new_queue->id && !$new_queue->Disabled ) {
                     my $val = $new_queue->_Value($attr) || $queue->_Value($attr);
                     RT->Logger->debug("Overriden $attr is $val for ticket #$id according to constituency $const");
                     return $val;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list