You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2009-11-13 20:04:19

laubac
Member
Registered: 2009-11-05
Posts: 19

Business rules bug ?

I am struggling with the following:
I create 2 business rules:
R1
   - Criteria: Title contains "R1" then Assign Category "C1"
R2
    - Criteria: Title contains "R2" then Assign Category "C2"

When I test:
  If I set title as "R1", I indeed get C1 as category.
  But ... If I set R2 as title, the category stays empty (and the Rule Results returns "No").

If I reverse the order of R1 and R2 (R2 above R1), I got the reverse results:
  R2 -> C2
  R1 -> ---

Would this be a bug or a misunderstanding on the way the rules engine works?

This looks like http://www.glpi-project.org/forum/viewt … p?id=16450 but it is supposingly solved in 0.72.2, and I am using 0.72.3

???

Thanks,

Laurent.

Last edited by laubac (2009-11-13 20:07:58)

Offline

#2 2009-11-19 08:09:18

laubac
Member
Registered: 2009-11-05
Posts: 19

Re: Business rules bug ?

Personne pour confirmer ou pour me contredire?

Offline

#3 2009-11-19 08:18:28

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Business rules bug ?

Effectivement, je reproduis à l'identique.

Le problème ne concerne que le "test" du moteur. A l'utilisation, ça fonctionne comme attendu.

Il va falloir chercher dans les entrailles du moteur

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#4 2009-11-19 20:25:52

laubac
Member
Registered: 2009-11-05
Posts: 19

Re: Business rules bug ?

Merci de la confirmation, ça me rassure (je me demandais sérieusement si je passais à côté de quelque chose d'évident).

Je rentre un bug dans le bug tracker?

Offline

#5 2009-11-19 23:05:17

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Business rules bug ?

ticket ajouté pour traitement : https://forge.indepnet.net/issues/show/1946


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#6 2009-11-19 23:28:00

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Business rules bug ?


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#7 2009-11-20 15:06:47

laubac
Member
Registered: 2009-11-05
Posts: 19

Re: Business rules bug ?

J'ai testé la correction, ça me paraît en ordre!

Merci, merci, merci!

Offline

#8 2009-11-23 14:41:11

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Business rules bug ?

merci du retour je ferme.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

Board footer

Powered by FluxBB