datainjection icon indicating copy to clipboard operation
datainjection copied to clipboard

Datatype issue while database data injection

Open shu-enioka opened this issue 1 year ago • 1 comments

Hello,

We are using DataInjection plugin with GLPI 10.0.16, and we have the following error while database data update:

image

According to our investigations, the error is due to a mismatched datatype between the databaseinjection class and the database attributes.

In the file <datainjection/inc/databaseinjection.class.php>, there is a search option datatype check in the function <get_parent_class (highlighted in the screenshot below) which causes error: image

Because the right datatype is "datetime" and not "date", we can find this information in the file <glpi/src/Database.php>

image

We have tested to change the datatype to "datetime" in the databaseinjection.class.php file, everything works well. Could you please fix this issue and publish a new version of the plugin? Thank you in advance.

Shu Wen

shu-enioka avatar Sep 04 '24 12:09 shu-enioka

So related fix seems to be a GLPI fix, not a datainjection fix

stonebuzz avatar Sep 04 '24 13:09 stonebuzz

There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.

If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.

You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.

github-actions[bot] avatar May 21 '25 08:05 github-actions[bot]