Commit bfec1f4d authored by Kevin Falcone's avatar Kevin Falcone
Browse files

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.
parent deb1f1c7
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment