Commit 833d184d authored by Kevin HAINRY's avatar Kevin HAINRY Committed by Johan Cwiklinski

FIX #5796 - Statistic by ticket : solution type (#5857)

parent 7ffc4081
......@@ -848,7 +848,6 @@ class Stat extends CommonGLPI {
break;
case "requesttypes_id" :
case "solutiontypes_id" :
case "urgency" :
case "impact" :
case "priority" :
......@@ -859,6 +858,22 @@ class Stat extends CommonGLPI {
$WHERE["$table.$param"] = $value;
break;
case "solutiontypes_id" :
$LEFTJOIN = [
'glpi_itilsolutions' => [
'ON' => [
'glpi_itilsolutions' => 'items_id',
'glpi_tickets' => 'id', [
'AND' => [
'glpi_itilsolutions.itemtype' => 'Ticket'
]
]
]
]
];
$WHERE["glpi_itilsolutions.$param"] = $value;
break;
case "device":
$devtable = getTableForItemType('Computer_'.$value2);
$fkname = getForeignKeyFieldForTable(getTableForItemType($value2));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment