[Bps-public-commit] r9433 - RT-Extension-SLA/lib/RT/Action
ruz at bestpractical.com
ruz at bestpractical.com
Wed Oct 24 10:38:22 EDT 2007
Author: ruz
Date: Wed Oct 24 10:38:21 2007
New Revision: 9433
Modified:
RT-Extension-SLA/lib/RT/Action/SLA_SetDefault.pm
Log:
* use new method so we have now one default service level for a ticket,
based on config or per queue(TODO)
Modified: RT-Extension-SLA/lib/RT/Action/SLA_SetDefault.pm
==============================================================================
--- RT-Extension-SLA/lib/RT/Action/SLA_SetDefault.pm (original)
+++ RT-Extension-SLA/lib/RT/Action/SLA_SetDefault.pm Wed Oct 24 10:38:21 2007
@@ -34,14 +34,11 @@
return 1;
}
- my $SLA = $self->Agreements;
- my $level = $SLA->SLA( $self->TransactionObj->CreatedObj->Unix );
+ my $level = $self->GetDefaultServiceLevel;
unless ( $level ) {
- if ( $SLA->IsInHours( $self->TransactionObj->CreatedObj->Unix ) ) {
- $RT::Logger->debug("No default service level for in hours time");
- } else {
- $RT::Logger->debug("No default service level for out of hours time");
- }
+ $RT::Logger->info(
+ "No default service level for ticket #". $self->TicketObj->id
+ ." in queue ". $self->TicketObj->QueueObj->Name;
return 1;
}
More information about the Bps-public-commit
mailing list