web-mdm-dashboard
web-mdm-dashboard copied to clipboard
Search nested criteria
Describe the solution you'd like It is necessary to create the possibility of searching through nested criteria
Additional context
- https://glpi.userecho.com/communities/1/topics/865-improve-search-options-of-it-assets-improvement-2-add-associative-property-explicitly#
- https://glpi.userecho.com/communities/1/topics/867-improve-search-options-of-it-assets-improvement-3-simplify-and-extend-global-searches
- https://glpi.userecho.com/communities/1/topics/323-use-jquery-querybuilder-for-multi-criteria-search-engine
Feature not yet available in glpi, waiting for implementation
ex
corresponding array passed to sql construction:
Array
(
[link] => OR
[criteria] => Array
(
[0] => Array
(
[field] => 2
[searchtype] => contains
[value] => test
)
[1] => Array
(
[link] => OR
[field] => view
[searchtype] => contains
[value] => toto
)
[2] => Array
(
[link] => AND
[field] => 3
[searchtype] => equals
[value] => 11
)
[4] => Array
(
[link] => AND
[criteria] => Array
(
[0] => Array
(
[field] => view
[searchtype] => contains
[value] => test3
)
[1] => Array
(
[link] => AND NOT
[field] => view
[searchtype] => contains
[value] => test4
)
)
)
)
)
See https://github.com/glpi-project/glpi/pull/4734