EventModule trigger too often...

English! place to talk about development, programming and coding
Post Reply
shostakovich
Znuny advanced
Posts: 146
Joined: 11 Apr 2011, 08:11
Znuny Version: 3.2.5

EventModule trigger too often...

Post by shostakovich »

Hi,

I've created a module. Upon clicking a new button in AgentTicketZoom, a state change is performed, amongst other things. To be precise, it's a workflow routing module, which e.g. sets a new state depending on the current state.

Now when the Agent uses AgentTicketPriority in order to set the "Next state", I also want to make some automatic changes to the ticket. I thought I could use an EventModule triggering on TicketStateUpdate, but the problem is: This will also start in case of my above mentioned module which leads to bad logic.

So what I'm searching for is a Trigger like "TicketStateUpdateAfterAgentTicketPrioHasBeenSubmitted"

Will I have to edit the respective perl module, I think it's AgentTicketActionsCommon.pm?

TIA
Post Reply