Skip to content

Commit 71eb892

Browse files
authored
fix(filter) Apply date filter to reportVstackbarTicketstech report (#340)
* fix(filter) Apply date filter to reportVstackbarTicketstech report * Update CHANGELOG.md
1 parent 7abb887 commit 71eb892

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212
- Fix missing attachment from notification
1313
- Fix `limit` clause
1414
- Improve SLA selector in reports
15+
- Fix date filter for reportVstackbarTicketstech report
1516

1617
## [1.8.10] - 2025-12-05
1718

inc/helpdeskplus.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,9 @@ public function reportVstackbarTicketstech($config = [])
594594
$_SESSION['mreporting_values']['date2' . $config['randname']] = date('Y-m-d');
595595
}
596596

597+
//Init delay value
598+
$delay = PluginMreportingCommon::getCriteriaDate('glpi_tickets.date', $config['delay'], $config['randname']);
599+
597600
foreach ($this->status as $current_status) {
598601
if ($_SESSION['mreporting_values']['status_' . $current_status] == '1') {
599602
$status_name = Ticket::getStatus($current_status);
@@ -626,6 +629,7 @@ public function reportVstackbarTicketstech($config = [])
626629
'GROUPBY' => ['name'],
627630
'ORDER' => ['name'],
628631
];
632+
$query['WHERE']['AND'] = $delay;
629633

630634
$result = $DB->request($query);
631635
foreach ($result as $data) {

0 commit comments

Comments
 (0)