<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
FYI: We ended up not using it and doing events the "old" way (coding).
It's faster but creates dependencies.<br>
<br>
In any case I expect this (and workflows) to get a lot better in next
releases and start using it then.<br>
<br>
This my experience, I am VERY comfortable with the code, so I tend to
go there for solutions.<br>
<br>
Joe<br>
TSolucio<br>
<br>
El 26/03/10 12:41, David V. escribió:
<blockquote
 cite="mid:ede3a6e21003260441l34e7c607r3b4b2a4a49ebaa47@mail.gmail.com"
 type="cite">Hi Everybody !<br>
  <br>
According to this ticket : <a moz-do-not-send="true"
 href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5468">http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5468</a><br>
  <br>
  <p>"When you add an aftersave event to an entity and in the <a
 moz-do-not-send="true" class="missing wiki"
 href="http://trac.vtiger.com/cgi-bin/trac.cgi/wiki/HandleEvent"
 rel="nofollow">HandleEvent?</a> you create (and save) another entity,
it raises an infinite loop.
  </p>
  <p>
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"
  </p>
According to the same ticket the solution is :<br>
  <br>
"This is something the developer will have to handle in their own code.
There are events that will have to run on every save."<br>
  <br>
But how do we actually handle this in the code ?<br>
  <br>
Does anyone have a working example of how to avoid infinite loop
without modifying Vtiger core ?<br>
  <br>
Thank you very much.<br>
  <br clear="all">
David V.<br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Reach hundreds of potential candidates - <a class="moz-txt-link-freetext" href="http://jobs.vtiger.com">http://jobs.vtiger.com</a> </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Un saludo
Joe
TSolucio</pre>
</body>
</html>