From a7847abfe993d05f03d4f183f6bfd83bee9d7021 Mon Sep 17 00:00:00 2001 From: Herafia Date: Tue, 13 Oct 2026 11:47:54 +0200 Subject: [PATCH] fix ticket tech date interval --- CHANGELOG.md | 1 + inc/helpdeskplus.class.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 173c61b3..1764c202 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - CI: fix Psalm cache directory, drop the stray `glpi-project/tools` composer dependency, declare a unique composer autoloader suffix - Profile rights to reports are no longer reset to "no access" each time the plugin is installed or updated +- "Tickets per technician" report now applies the selected date interval ## [1.10.3] - 2026-09-28 diff --git a/inc/helpdeskplus.class.php b/inc/helpdeskplus.class.php index 587bf34f..3fa9ca7c 100644 --- a/inc/helpdeskplus.class.php +++ b/inc/helpdeskplus.class.php @@ -597,6 +597,8 @@ public function reportVstackbarTicketstech($config = []) $_SESSION['mreporting_values']['date2' . $config['randname']] = date('Y-m-d'); } + $delay = PluginMreportingCommon::getCriteriaDate('glpi_tickets.date', $config['delay'], $config['randname']); + foreach ($this->status as $current_status) { if ($_SESSION['mreporting_values']['status_' . $current_status] == '1') { $status_name = Ticket::getStatus($current_status); @@ -629,6 +631,7 @@ public function reportVstackbarTicketstech($config = []) 'GROUPBY' => ['name'], 'ORDER' => ['name'], ]; + $query['WHERE']['AND'] = $delay; $result = $DB->request($query); foreach ($result as $data) {