Infinite onPostSave Loop

Hi all =)
Is it possible in an “onLeadPostSave”, where i update several Lead fields and save that lead entity, to prevent fire that function again? It causes an infinite loop.

Here you have an example on how to prevent the infinite event loop
app/bundles/LeadBundle/EventListener/LeadSubscriber.php:138

I’m using Mautic 3.3.1

1 Like