Bug #518

Bug OCSNG - mauvais nommage d'une collone

Added by Anonymous about 15 years ago. Updated about 15 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:moyo% Done:

0%

Category:-
Target version:0.68

Description

I was debugging mysql->query function from file glpi/common/classes.php adding this command : 

$res=mysql_query($query,$this->dbh);

print "query is $query<br />";
$error = mysql_error();
if ( $error != _ ) {
 print " -> error is ".mysql_error();
 exit(1);
}

and I importing one computer from ocsng using plugins.

I found this line : 
query is SELECT import_periph FROM glpi_ocs_link WHERE glpi_id='93'
-> error is Unknown column 'import_periph' in 'field list'

Regarding the mysql table, the right column name is 'import_peripherical'

History

#1 Updated by moyo about 15 years ago

the plugin must not to be used with the 0.65 version.
You must to use the OCS NG mode.

#2 Updated by about 15 years ago

  • Status changed from Closed to Assigned
I were using OCS-NG mode !

#3 Updated by moyo about 15 years ago

  • Status changed from Assigned to Closed
Corrected in the CVS.

http://svn.gna.org/viewcvs/glpi/glpi/trunk/glpi/ocsng/functions.php?rev=3113&view=diff&r1=3113&r2=3112&p1=glpi/trunk/glpi/ocsng/functions.php&p2=/glpi/trunk/glpi/ocsng/functions.php

#4 Updated by moyo about 15 years ago

  • Status changed from New to Closed

Also available in: Atom PDF