Contribution tokens used to work but don't anymore (v1.x)
I took over an install running emailapi 1.x and CiviRules 2.7. When I upgraded to a modern version of CiviRules, emails stopped using contribution tokens, which previously worked.
The issue is on this line which reads:
elseif (!empty($params['extra_data']['contribution'])) {
but it should have a capital C in Contribution:
elseif (!empty($params['extra_data']['Contribution'])) {
I don't know when this regressed - some time between CiviRules 2.7 and 2.19.
So two questions:
- Are you still accepting patches on the 1.x branch?
- Is the plan not to support contribution tokens until TokenProcessor supports them in core? This feels like a loss of functionality and there should be a disclaimer on this re: moving to emailapi v2.0.