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
Guest
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

Board footer

Powered by FluxBB