Prevent logic hook from saving

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

Parents Reply Children
No Data