[Vtigercrm-developers] Infinite loop in Events

David V. davidv.net at gmail.com
Fri Mar 26 09:19:19 PDT 2010


Joe,

Thank you for replying.

This is exactly what we started to do (coding the old way). We are
accustomed to the time we had to code every thing in Vtiger. But I was just
trying to know if someone had come up with something more "modern" using the
new features of Vtiger.

Thanks anyway and keep up the good work !

David V.


2010/3/26 Joe Bordes <joe at tsolucio.com>

>  FYI: We ended up not using it and doing events the "old" way (coding).
> It's faster but creates dependencies.
>
> In any case I expect this (and workflows) to get a lot better in next
> releases and start using it then.
>
> This my experience, I am VERY comfortable with the code, so I tend to go
> there for solutions.
>
> Joe
> TSolucio
>
> El 26/03/10 12:41, David V. escribió:
>
> 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.
>
>
> _______________________________________________
> Reach hundreds of potential candidates - http://jobs.vtiger.com
>
>
>
> --
> Un saludo
> Joe
> TSolucio
>
>
> _______________________________________________
> Reach hundreds of potential candidates - http://jobs.vtiger.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20100326/8a067bcb/attachment-0002.html 


More information about the vtigercrm-developers mailing list