Bug #5403

Tab Historical no longer works

Added by blerohellec about 4 years ago. Updated almost 4 years ago.

Status:NewStart date:07/07/2015
Priority:NormalDue date:
Assignee:-% Done:

20%

Category:-
Target version:-

Description

v1.7 for GLPI 0.85

Enable CF for a device type, let's say Ticket
go to a ticket, add its Custom Fields.
Go to Tab Historical of Ticket -> msg "Security die trying to load a forbidden class name", and the tab is empty

No pb until one adds Custom Fields to a ticket.
Same with Computer, Monitor, etc

History

#1 Updated by blerohellec about 4 years ago

Same error when I add a task to a ticket which has already Custom fields. Nevertheless the task is correctly added.
See also topic #62613 in the forum (May 2015) : http://forum.glpi-project.org/viewtopic.php?id=62613
The error persists until the lines related to plugin CF have been deleted from table glpi_logs.

#2 Updated by smithj4 about 4 years ago

I had the same problem. I checked the database and code and it comes from rows in the glpi_logs table where the forth column has a zero, itemtype_link='0'. This comes from the inc/field.class.php file, where on line 485 it calls the Log::history() function and passes 0 as the forth argument every time. The fusioninventory plugin had a similar problem. So changing this to the empty string "" fixed the problem. I also had to update all of the zeros in my database to make the history tab work again:

# mysql glpi
mysql> UPDATE glpi_logs SET itemtype_link='' WHERE itemtype_link='0';

#3 Updated by blerohellec almost 4 years ago

  • % Done changed from 0 to 20

Thx for the tip.
1.7 is corrected.
The migration shall be corrected too in a near future.

Also available in: Atom PDF