ComputeValues optimized + fix in the algo computing the priority of an Incident

SVN:trunk[543]
This commit is contained in:
Romain Quetiez
2010-07-04 07:46:45 +00:00
parent 91107715ac
commit dbee38dfd1
2 changed files with 22 additions and 19 deletions

View File

@@ -376,30 +376,24 @@ class Incident extends Ticket
$aPriorities = array(
// single person
1 => array(
array(
1 => 1,
2 => 1,
3 => 2,
)
1 => 1,
2 => 1,
3 => 2,
),
// a group
2 => array(
array(
1 => 1,
2 => 2,
3 => 3,
)
1 => 1,
2 => 2,
3 => 3,
),
// a departement!
3 => array(
array(
1 => 2,
2 => 3,
3 => 3,
)
1 => 2,
2 => 3,
3 => 3,
),
);
$iPriority = 1; //$aPriorities[$this->Get('impact')][$this->Get('urgency')];
$iPriority = $aPriorities[$this->Get('impact')][$this->Get('urgency')];
$this->Set('priority', $iPriority);
// Compute the SLA deadlines