Hi,

while playing with the data injection plugin (svn r593, glpi 0.80.x), I
noticed that importing again the exact same data leads to some issues.

The model is used to create users, setting the following fields:
 ID,
 last name,
 first name,
 administrative number,
 comment.

The link field is ID; creating and modifying fields is allowed.

To reproduce the issue, with all users created after the initial import,
I clear the comment field this way:
  update glpi_users set comment="";

I'm then able to import my csv file, which results in a successful
update (injection type) for all items.

But then, using the exact same settings, the update fails for 5 items,
with the following HTML report, for all 5 rows:
 - Icon: White cross on a red disc
 - Line: $number
 - Data check: see below
 - Data import: failure
 - Injection type: update
 - Object ID: $id

In the data check cell, I'm getting:
(comment='
old-value
old-value')

where old-value is both the value available for that item's comment in
GLPI, and the new value (since I didn't change the data set at all
between both imports).

I'm not sure where to go from here to debug that. Any hints welcome.
(I'm already running GLPI in debug mode, but that doesn't help here.)

Cheers,
-- 
Cyril Brulebois
Support AriadNEXT
0 825 590 003

_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to