You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-04-18 21:41:44

smithj4
Member
Registered: 2012-03-15
Posts: 13

[Plugin glpi-reports 1.11.2] bug.

Hi,

I found a bug in the glpi reports plugin:

https://forge.glpi-project.org/projects/reports

I noticed this error in our server's logs:

PHP Fatal error:  Uncaught Error: Call to undefined method DbUtils::etTableForItemType() in /usr/share/glpi/plugins/reports/report/infocom/infocom.php:154\nStack trace:\n#0 {main}\n  thrown in /usr/share/glpi/plugins/reports/report/infocom/infocom.php on line 154,

It looks like a simple mistake in line 154:

https://forge.glpi-project.org/projects … m.php#L154

It should be changed:

- $modeltable = $dbu->etTableForItemType($modelclass);
+ $modeltable = $dbu->getTableForItemType($modelclass);

~Jason

Offline

#2 2018-06-04 16:28:25

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: [Plugin glpi-reports 1.11.2] bug.

Ticket opened in the roadmap: https://forge.glpi-project.org/issues/5562
Thanks


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2018-06-04 17:47:53

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: [Plugin glpi-reports 1.11.2] bug.

Version 1.11.3 published this day with the correction


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

Board footer

Powered by FluxBB