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

1.21.0 additional field as Number type is created as varchar and cannot be sort by number correctly #768

Open
elmotofan opened this issue Feb 28, 2024 · 0 comments

Comments

@elmotofan
Copy link

Hi,
Since we are using fields plugin, ever extra field created as "Number" type in GLPI, we cannot sort correctly in the views and queries.
We saw that the field is create as VARCHAR in the database. That cannot be able to sort as number, the sort is made as text in differents view.

That affect to all queries made from differents sources (gui, api, sql, etc)

image

image

image

If cannot be changed by the internal design, may be can be added some function in the code like a "CAST ( xxx as Unsigned)" or similar.

Thanks, and I look forward to any questions.

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

1 participant