[Bps-public-commit] r9530 - RT-Extension-SLA/lib/RT/Extension
ruz at bestpractical.com
ruz at bestpractical.com
Thu Nov 1 03:32:56 EDT 2007
Author: ruz
Date: Thu Nov 1 03:32:55 2007
New Revision: 9530
Modified:
RT-Extension-SLA/lib/RT/Extension/SLA.pm
Log:
* allow to speccify per queue defaults in the config as we have no web UI right now
Modified: RT-Extension-SLA/lib/RT/Extension/SLA.pm
==============================================================================
--- RT-Extension-SLA/lib/RT/Extension/SLA.pm (original)
+++ RT-Extension-SLA/lib/RT/Extension/SLA.pm Thu Nov 1 03:32:55 2007
@@ -317,8 +317,10 @@
$RT::Logger->crit("Couldn't load RT::Queue_SLA: $@");
}
else {
- return $self->TicketObj->QueueObj->SLA
- if $self->TicketObj->QueueObj->SLA;
+ return $args{'Queue'}->SLA if $args{'Queue'}->SLA;
+ }
+ if ( $RT::SLA{'QueueDefault'} && $RT::SLA{'QueueDefault'}{ $args{'Queue'}->Name } ) {
+ return $RT::SLA{'QueueDefault'}{ $args{'Queue'}->Name };
}
}
return $RT::SLA{'Default'};
More information about the Bps-public-commit
mailing list