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 2024-11-25 17:11:46

Vireth
Member
Registered: 2024-11-25
Posts: 2

Plugins Hooks on all Rule Subtypes

Hello,

I was trying to create a plugin that customize a bit some rules for tickets, but I haven't been able to hook my plugin to RuleTicket
So I was wondering why the method executePluginsActions() (that implements plugins hooks for executing rule actions) is not called for every rule subtypes.
For instance RuleAsset calls it in executeActions() but RuleTicket doesn't.

Is there some specifications I'm not aware of, or action hooking is missing for some subtypes ?

-----
Bonjour,

J'ai essayé de créer un plugin qui customise quelques règles pour les tickets, mais je n'ai pas pu hook mon plugin à RuleTicket
Je me demandais donc si la méthode executePluginsActions() (qui implémente les hooks pour l'exécution des actions) n'est pas appelé dans tous les sous-types.
Par exemple, RuleAsset appelle la méthode dans executeActions() mais pas RuleTicket

Il y a-t-il des choses spécifiques à certains sous-types dont je n'ai pas connaissance, ou il y a-t-il un oubli pour certains sous-types ?

Offline

#2 2024-12-03 10:32:56

Vireth
Member
Registered: 2024-11-25
Posts: 2

Re: Plugins Hooks on all Rule Subtypes

Up,
I have once again been stucked on another subtype (this time RuleImportAsset), is there really no way to add actions with custom functions to existing rule subtype without having to create another subtype ?

Offline

Board footer

Powered by FluxBB