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.24k stars 1.29k forks source link

[9.4 / 9.5] Business rules criteria on category (completename and code) doesn't fully work #8001

Closed AlanBadier closed 3 years ago

AlanBadier commented 4 years ago

How to reproduce :

image

image

contains condition (but I think others like "regex" doesn't work either) on category completename or code never trigger

Several things about that :

i've quickly fixed this bug locally with this code onruleticketcollection.class.php:123

if (isset($input['itilcategories_id'])) {
         $itilcategory = new ITILCategory();
         $itilcategory->getFromDB($input['itilcategories_id']);

         $input['itilcategories_id_cn']   = $itilcategory->fields['completename'];
         $input['itilcategories_id_code'] = $itilcategory->fields['code'];
}

But it's not the most effective way to do it I think

Alan

eduardospinola commented 4 years ago

I'm having the same problem here.

WebGregGit commented 3 years ago

Try to upgrade - we already have version 9.5.2 which has quite a few bug fixes.

github-actions[bot] commented 3 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.