sfdc-trigger-framework icon indicating copy to clipboard operation
sfdc-trigger-framework copied to clipboard

Recurssion Control is not correct

Open fbouzeraa opened this issue 5 years ago • 3 comments

Hi, First of all I want to thank you Kevin for this great work.

In fact I discuvred some issue, the control of recurssion is based on the triggerHandler name not the exact event (Before Insert, Before Update, ...), so by this way, you w'll stop other events from running. Say for example if the before insert is running and by some way another event must run, so the control w'll stop it. we aleready encountred this scenarion.

Please find attached my proposed correction and tell me if you think I have right. https://gist.github.com/fbouzeraa/29f6b84e7a93c3c39b20631b89a97f8d Best regards,

fbouzeraa avatar Feb 05 '20 09:02 fbouzeraa

Hey @fbouzeraa, would you mind to provide your solution as a link to a gist instead of a zip archive?

eyavorovenko avatar Feb 13 '20 15:02 eyavorovenko

Hi @eduardyav, this is : https://gist.github.com/fbouzeraa/29f6b84e7a93c3c39b20631b89a97f8d Best regards,

fbouzeraa avatar Feb 13 '20 15:02 fbouzeraa

I also encountered this issue, didnt expect that it will count method executions

wrone avatar Sep 27 '21 12:09 wrone