From 0ed6dbb5175aae65ac4c83c1e3222fad5294896c Mon Sep 17 00:00:00 2001 From: MyuTsu Date: Tue, 16 Dec 2025 14:48:47 +0100 Subject: [PATCH 1/2] ux(sla): improve SLA selector in reports --- inc/common.class.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/inc/common.class.php b/inc/common.class.php index 2647cd97..e83fd914 100644 --- a/inc/common.class.php +++ b/inc/common.class.php @@ -1426,9 +1426,18 @@ public static function selectorAllSlasWithTicket() 'SELECT' => [ 'glpi_slas.id', 'glpi_slas.name', + 'glpi_slms.name AS slm_name', ], 'DISTINCT' => true, 'FROM' => 'glpi_slas', + 'LEFT JOIN' => [ + 'glpi_slms' => [ + 'ON' => [ + 'glpi_slas' => 'slms_id', + 'glpi_slms' => 'id', + ], + ], + ], 'INNER JOIN' => [ 'glpi_tickets' => [ 'ON' => [ @@ -1446,7 +1455,8 @@ public static function selectorAllSlasWithTicket() $values = []; foreach ($result as $data) { - $values[$data['id']] = $data['name']; + $slm_name = $data['slm_name']; + $values[$slm_name][$data['id']] = $data['name']; } $selected_values = isset($_SESSION['mreporting_values']['slas']) ? $_SESSION['mreporting_values']['slas'] : []; From 4d0c40b9ed0275cb516e214de927b0b172734561 Mon Sep 17 00:00:00 2001 From: MyuTsu Date: Tue, 16 Dec 2025 14:56:59 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e73a722..f85c3d08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fix missing attachment from notification - Fix `limit` clause + - Improve SLA selector in reports ## [1.8.10] - 2025-12-05