Closed AlanBadier closed 3 years ago
I'm having the same problem here.
Try to upgrade - we already have version 9.5.2 which has quite a few bug fixes.
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.
How to reproduce :
contains condition (but I think others like "regex" doesn't work either) on category completename or code never trigger
Several things about that :
On update, when you modify the itil category, the criteria on "code" is never triggered, because the validation method of criteria search for "itilcategories_id_code" in input array (because of only_criteria parameter), but only 'itilcategories_id' is present. Need to modify ruleticketcollection.class.php on method prepareInputDataForProcess to add itilcategories_id_code in input array on itilcategories_id change
Because of "dropdown" type on criteria, the field passed to the 'match' function is always (I think ?) the "name" field of category, but in itilcategories_id_cn and itilcategories_id_code criteria it would be nice to fill the $input array with the right field value, and removing the dropdown type on category completename criteria
i've quickly fixed this bug locally with this code onruleticketcollection.class.php:123
But it's not the most effective way to do it I think
Alan