File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
1212 - Fix missing attachment from notification
1313 - Fix ` limit ` clause
14+ - Improve SLA selector in reports
1415
1516## [ 1.8.10] - 2025-12-05
1617
Original file line number Diff line number Diff line change @@ -1426,9 +1426,18 @@ public static function selectorAllSlasWithTicket()
14261426 'SELECT ' => [
14271427 'glpi_slas.id ' ,
14281428 'glpi_slas.name ' ,
1429+ 'glpi_slms.name AS slm_name ' ,
14291430 ],
14301431 'DISTINCT ' => true ,
14311432 'FROM ' => 'glpi_slas ' ,
1433+ 'LEFT JOIN ' => [
1434+ 'glpi_slms ' => [
1435+ 'ON ' => [
1436+ 'glpi_slas ' => 'slms_id ' ,
1437+ 'glpi_slms ' => 'id ' ,
1438+ ],
1439+ ],
1440+ ],
14321441 'INNER JOIN ' => [
14331442 'glpi_tickets ' => [
14341443 'ON ' => [
@@ -1446,7 +1455,8 @@ public static function selectorAllSlasWithTicket()
14461455
14471456 $ values = [];
14481457 foreach ($ result as $ data ) {
1449- $ values [$ data ['id ' ]] = $ data ['name ' ];
1458+ $ slm_name = $ data ['slm_name ' ];
1459+ $ values [$ slm_name ][$ data ['id ' ]] = $ data ['name ' ];
14501460 }
14511461
14521462 $ selected_values = isset ($ _SESSION ['mreporting_values ' ]['slas ' ]) ? $ _SESSION ['mreporting_values ' ]['slas ' ] : [];
You can’t perform that action at this time.
0 commit comments