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

CRM-21000 : Fix DB error on Advance Search Mailings #10798

Merged
merged 1 commit into from
Aug 3, 2017

Conversation

jitendrapurohit
Copy link
Contributor

@jitendrapurohit jitendrapurohit commented Aug 1, 2017

Overview

This Fixes DB Error on Advance Search if results are displayed as Mailings.

Before

Incorrect join of civicrm_contribution.campaign_id in the query leads to DB error.

After

Correct joins are formed based on mailing or contribution

Technical Details

Campaign Filter was added in #6527. This change aims to add join for campaign before Component::from is called so that correct join is added for campaign_id w.r.t mailing or contribution.


@seamuslee001
Copy link
Contributor

Tested this and confirms that it fixes it. @eileenmcnaughton

@eileenmcnaughton
Copy link
Contributor

Thanks for the review @seamuslee001 & the patch @jitendrapurohit - the patch makes sense & I'm happy with Seamus's testing

@eileenmcnaughton eileenmcnaughton merged commit 5aee6c3 into civicrm:master Aug 3, 2017
@jitendrapurohit jitendrapurohit deleted the CRM-21000Fix branch August 4, 2017 02:45
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.

4 participants