Skip to content

1.8.8 - Error opening report #293

@andrepetinga

Description

@andrepetinga

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

GLPI Version

10.0.18

Plugin version

1.8.8

Bug description

When I open the "BackLog" report, it won't return any results if I choose any "Group in charge of the ticket".
Activating the debug mode, it shows several errors:

Image

Relevant log output

[2025-08-29 14:48:49] glpisqllog.ERROR: DBmysql::doQuery() in /glpi/src/DBmysql.php line 395
  *** MySQL query error:
  SQL: SELECT COUNT(*) AS nb, DATE_FORMAT(list_date.period_l, '%y%m%d') as period, DATE_FORMAT(list_date.period_l, '%d %b') as period_name FROM (SELECT DISTINCT `period_l` FROM ((SELECT DISTINCT DATE_FORMAT(`date`, '%Y-%m-%d 23:59:59') as period_l FROM `glpi_tickets`) UNION ALL (SELECT DISTINCT DATE_FORMAT(`solvedate`, '%Y-%m-%d 23:59:59') as period_l FROM `glpi_tickets`)) AS `list_date_union`) AS `list_date` LEFT JOIN `glpi_tickets` ON (((glpi_tickets.solvedate > list_date.period_l) OR glpi_tickets.solvedate IS NULL OR `glpi_tickets`.`date` <= 'list_date.period_l')) LEFT JOIN `glpi_tickets_users` ON (`glpi_tickets_users`.`tickets_id` = `glpi_tickets`.`id` AND `glpi_tickets_users`.`type` = '2') LEFT JOIN `glpi_groups_tickets` ON (`glpi_groups_tickets`.`tickets_id` = `glpi_tickets`.`id` AND `glpi_groups_tickets`.`type` = '1') WHERE `glpi_tickets`.`entities_id` IN ('1') AND `glpi_tickets`.`is_deleted` = '0' AND DATE_FORMAT(list_date.period_l, '%y%m%d') >= '250101' AND DATE_FORMAT(list_date.period_l, '%y%m%d') <= '250815' AND `glpi_tickets`.`type` = '2' AND `glpi_groups_tickets`.`groups_id` IN ('32') GROUP BY `period`
  Error: Incorrect TIMESTAMP value: 'list_date.period_l'
  Backtrace :
  src/DBmysqlIterator.php:112                        DBmysql->doQuery()
  src/DBmysql.php:1105                               DBmysqlIterator->execute()
  plugins/mreporting/inc/helpdeskplus.class.php:382  DBmysql->request()
  plugins/mreporting/inc/common.class.php:670        PluginMreportingHelpdeskplus->reportGlineBacklogs()
  plugins/mreporting/front/graph.php:43              PluginMreportingCommon->showGraph()
  public/index.php:82                                require()
  {"user":"5647@suporte"}

Page URL

front/graph.php?short_classname=Helpdeskplus&f_name=reportGlineBacklogs&gtype=gline

Steps To reproduce

  1. Open the report
  2. Activate the Debug Mode
  3. Fill the "Group in charge of the ticket" and call the report

Your GLPI setup information

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions