twomice / com.joineryhq.reltoken

CiviCRM extension: Provides tokens for any related contact, for all available contact tokens. E.g., to get the spouse's first name, or parent's marriage date.
Other
1 stars 5 forks source link

use continue not break #8

Closed MegaphoneJon closed 5 years ago

MegaphoneJon commented 5 years ago

"What idiot put a break here? Ah yes, me."

If you have multiple reltokens that use different relationships, break will stop processing all reltokens after the first one with no relationships. continue will just skip the bad token and move on to the next one.

twomice commented 5 years ago

Merged. Good catch.