Skip to content

Support contribution tokens on CiviRules 2.23+

JonGold requested to merge JonGold/emailapi:civirules223-fix into master

It turns out issue #19 (closed) also affects Email API 2.x. This is the fix.

To replicate:

  • Create a message template with a contribution token (e.g. {contribution.total_amount}.
  • Create a CiviRule that triggers on a contribution that sends an email using said template.

On CiviRules 2.22, it works. On CiviRules 2.23 it doesn't, since array indexes are capitalized differently.

Merge request reports