mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-16 05:48:47 +02:00
ComputeValues optimized + fix in the algo computing the priority of an Incident
SVN:trunk[543]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user