Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datatype issue while database data injection #412

Open
shu-enioka opened this issue Sep 4, 2024 · 1 comment
Open

Datatype issue while database data injection #412

shu-enioka opened this issue Sep 4, 2024 · 1 comment

Comments

@shu-enioka
Copy link

shu-enioka commented Sep 4, 2024

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

@pluginsGLPI pluginsGLPI deleted a comment Sep 4, 2024
@stonebuzz
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants