AnsweredAssumed Answered

Prevent logic hook from saving

Question asked by Derick van Niekerk on Nov 1, 2016
Latest reply on Nov 29, 2016 by Derick van Niekerk

I have a logic hook triggering before_relationship_add for the Accounts module.

 

This checks all contacts if certain flags are set and throws an error if not all the flags are found on the related contacts.

 

After throwing the error, it looks like the save was prevented, but as soon as I refresh, I can see that the change has been saved even though an error was thrown in the logic hook!

 

How do I prevent the save from happening?

 

Derick

Outcomes