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

Prevent \Civi\Token\TokenCompatSubscriber::evaluate() erroring when no contactId is given. #13284

Merged
merged 1 commit into from
Jan 3, 2019

Conversation

aydun
Copy link
Contributor

@aydun aydun commented Dec 14, 2018

Overview

Extracted from #13174 and #12012 Handle the situation when \Civi\Token\TokenCompatSubscriber::evaluate() is called with no contactId specified in the row context. Should not error.

@civibot
Copy link

civibot bot commented Dec 14, 2018

(Standard links)

@civibot civibot bot added the master label Dec 14, 2018
@mattwire
Copy link
Contributor

mattwire commented Jan 3, 2019

This is compatibility code. I'm not sure why we'd end up with no contact Id but can see why it would fail if we did. The result of a missing contact Id would be a failure to process further tokens which is undesirable.

@seamuslee001 @eileenmcnaughton Could one of you merge?

@seamuslee001
Copy link
Contributor

Merging as per @mattwire 's review

@seamuslee001 seamuslee001 merged commit fddfd6a into civicrm:master Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants