[Vtigercrm-developers] Infinite loop in Events

David V. davidv.net at gmail.com
Fri Mar 26 04:41:04 PDT 2010


Hi Everybody !

According to this ticket :
http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5468

"When you add an aftersave event to an entity and in the
HandleEvent?<http://trac.vtiger.com/cgi-bin/trac.cgi/wiki/HandleEvent>you
create (and save) another entity, it raises an infinite loop.

This occurs because VTEvenTrigger::trigger
(include/events/VTEventTrigger.inc), execute all handlers registered when
saving an entity. It should execute ONLY handler for current entity"
According to the same ticket the solution is :

"This is something the developer will have to handle in their own code.
There are events that will have to run on every save."

But how do we actually handle this in the code ?

Does anyone have a working example of how to avoid infinite loop without
modifying Vtiger core ?

Thank you very much.

David V.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20100326/f4844411/attachment-0002.html 


More information about the vtigercrm-developers mailing list