Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contact 1 email isn't always the billing email #933

Open
wants to merge 2 commits into
base: 6.x
Choose a base branch
from

Conversation

MegaphoneJon
Copy link
Contributor

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.

@MegaphoneJon
Copy link
Contributor Author

Note that this is basically #882 in a different place.

@jitendrapurohit
Copy link
Collaborator

@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).

@MegaphoneJon
Copy link
Contributor Author

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.

@KarinG
Copy link
Collaborator

KarinG commented Mar 5, 2024

Yes - unrelated -> it's a leap year failure!

@KarinG
Copy link
Collaborator

KarinG commented Mar 6, 2024

That leap year issue has been dealt with. Kicking off the tests again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants