Skip to content

Commit

Permalink
Update date problem with widget
Browse files Browse the repository at this point in the history
  • Loading branch information
keha35 committed Dec 18, 2018
1 parent 75161f2 commit 201984f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inc/infotel.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2335,7 +2335,6 @@ function() {
$currentmonth = date("m");

$previousyear = $currentyear - 1;
$nextmonth = $currentmonth + 1;
$tabopened = [];
$tabsolved = [];
$tabprogress = [];
Expand Down Expand Up @@ -2369,7 +2368,7 @@ function() {
DATE_FORMAT(`glpi_tickets`.`date`, '%Y%m') AS monthnum, count(MONTH(`glpi_tickets`.`date`))
FROM `glpi_tickets`
WHERE $is_deleted AND (`glpi_tickets`.`date` >= '$previousyear-$currentmonth-01 00:00:00')
AND (`glpi_tickets`.`date` <= '$currentyear-$nextmonth-01 00:00:00')
AND (`glpi_tickets`.`date` <= '$currentyear-$currentmonth-01 00:00:00')
" . $entities_criteria . "
GROUP BY DATE_FORMAT(`glpi_tickets`.`date`, '%Y-%m')";

Expand Down

0 comments on commit 201984f

Please sign in to comment.