[Bps-public-commit] r9392 - RT-Extension-SLA/lib/RT/Action
ruz at bestpractical.com
ruz at bestpractical.com
Mon Oct 22 11:23:10 EDT 2007
Author: ruz
Date: Mon Oct 22 11:23:08 2007
New Revision: 9392
Modified:
RT-Extension-SLA/lib/RT/Action/SLA_SetDue.pm
Log:
* for resolve due use ticket's created time
Modified: RT-Extension-SLA/lib/RT/Action/SLA_SetDue.pm
==============================================================================
--- RT-Extension-SLA/lib/RT/Action/SLA_SetDue.pm (original)
+++ RT-Extension-SLA/lib/RT/Action/SLA_SetDue.pm Mon Oct 22 11:23:08 2007
@@ -56,9 +56,10 @@
my $self = shift;
my $level = shift;
- my $time = $self->TransactionObj->CreatedObj->Unix;
- my $response_due = $self->Agreements( Type => 'Response' )->Due( $time, $level );
- my $resolve_due = $self->Agreements( Type => 'Resolve' )->Due( $time, $level );
+ my $response_due = $self->Agreements( Type => 'Response' )
+ ->Due( $self->TransactionObj->CreatedObj->Unix, $level );
+ my $resolve_due = $self->Agreements( Type => 'Resolve' )
+ ->Due( $self->TicketObj->CreatedObj->Unix, $level );
return $resolve_due < $response_due? $resolve_due : $response_due;
}
More information about the Bps-public-commit
mailing list