Pour info, j'ai noté une erreur dans 2 requêtes SQL du fichier export_tickets.php.
Il y a 2 fois une utilisation de $db_criticality au lieu de $db_category.
Cela a pour effet de fausser les exports Excel des stats.
Code : Tout sélectionner
//special case to filter by meta state
if($db_state=='meta') {
$query="
SELECT id,type,type_answer,technician,user,u_service, $select creator,category,subcat,place,title,time,date_create,date_hope,date_res,state,priority,criticality
FROM tincidents
WHERE
technician LIKE '$db_technician' AND
u_service LIKE '$db_service' AND
type LIKE '$db_type' AND
criticality LIKE '$db_criticality' AND
category LIKE '$db_criticality' AND
(state=1 OR state=2 OR state=6) AND
date_create LIKE '%-$db_month-%' AND
date_create LIKE '$db_year-%' AND
u_agency LIKE '$db_agency' AND
$where
disable=0
";
} else {
$query="
SELECT id,type,type_answer,technician,user,u_service, $select creator,category,subcat,place,title,time,date_create,date_hope,date_res,state,priority,criticality
FROM tincidents
WHERE
technician LIKE '$db_technician' AND
u_service LIKE '$db_service' AND
type LIKE '$db_type' AND
criticality LIKE '$db_criticality' AND
category LIKE '$db_criticality' AND
state LIKE '$db_state' AND
date_create LIKE '%-$db_month-%' AND
date_create LIKE '$db_year-%' AND
u_agency LIKE '$db_agency' AND
$where
disable=0
";
}