diff --git a/CHANGELOG.md b/CHANGELOG.md index f85c3d08..553e1b4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fix missing attachment from notification - Fix `limit` clause - Improve SLA selector in reports + - Fix date filter for reportVstackbarTicketstech report ## [1.8.10] - 2025-12-05 diff --git a/inc/helpdeskplus.class.php b/inc/helpdeskplus.class.php index 6d01e67c..c3ee0afe 100644 --- a/inc/helpdeskplus.class.php +++ b/inc/helpdeskplus.class.php @@ -594,6 +594,9 @@ public function reportVstackbarTicketstech($config = []) $_SESSION['mreporting_values']['date2' . $config['randname']] = date('Y-m-d'); } + //Init delay value + $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); @@ -626,6 +629,7 @@ public function reportVstackbarTicketstech($config = []) 'GROUPBY' => ['name'], 'ORDER' => ['name'], ]; + $query['WHERE']['AND'] = $delay; $result = $DB->request($query); foreach ($result as $data) {