webform_civicrm
webform_civicrm copied to clipboard
contact 1 email isn't always the billing email
Overview
See https://www.drupal.org/project/webform_civicrm/issues/3410941.
Before
Error when submitting a contribution and contact 1's email is blank.
After
Error when submitting a contribution when the contribution owner's email is blank.
Note that this is basically #882 in a different place.
@MegaphoneJon The test failure seems related
Error message Notice: Only variables should be passed by reference in Drupal\webform_civicrm\WebformCivicrmPostProcess->getContributionContactIndex() (line 1878 of /home/runner/work/webform_civicrm/webform_civicrm/src/WebformCivicrmPostProcess.php).
I'm 99% sure that the current test failure is unrelated, since I'm not touching memberships.
With this updated fix, I can see the issue - not everywhere this function is called has $this->submissionValue
defined. That's why this defaulted to contact 1 early in the postProcess.
Yes - unrelated -> it's a leap year failure!
That leap year issue has been dealt with. Kicking off the tests again!