glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.2k stars 1.28k forks source link

"Items Seen not contains XYZ" should not behave like "contains" #9604

Closed mathieumd closed 2 years ago

mathieumd commented 3 years ago

Describe the bug

When you use the "Items Seen" search (in Computers, for example), and select the "not contains" XYZ, it matches all objetcs that have at least one field not containing XYZ. Which means it usualy match all objects, as there is always a field not containing some string.

Expected behavior

Only objects having not a single field containing X should match.

Your GLPI setup (you can find it in Setup > General menu, System tab)

GLPI 9.5.5
Installation mode: TARBALL
github-actions[bot] commented 2 years ago

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.

mathieumd commented 2 years ago

Still same problem with GLPI 9.5.6.

github-actions[bot] commented 2 years ago

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.

mathieumd commented 2 years ago

ping

cconard96 commented 2 years ago

The behavior of this search does seem odd, but it is possible to get the results you were looking for by using "NOT Items Seen contains XYZ".

mathieumd commented 2 years ago

Thanks, it does work as expected, indeed.

I still believe the code should be fixed/amended, because it's not intuitive for end users.