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

dev/core#1324 Adds missing join on the customtable of address customfields while exposed as profile #15541

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

VangelisP
Copy link
Contributor

Overview

This PR is adding a LEFT JOIN to the missing address customfields so that the query can function properly.
This is related to issue : https://lab.civicrm.org/dev/core/issues/1324

Before

A LEFT JOIN was missing from the table, resulting in a DB Error: no such field (field was included in the query but had no source to connect to)

After

Query executes properly

Technical Details

As this PR affects the CRM/Contact/BAO/Query.php , it's very important to be reviewed properly.

Comments

Please review it thoroughly.

@civibot
Copy link

civibot bot commented Oct 18, 2019

(Standard links)

@civibot civibot bot added the master label Oct 18, 2019
@VangelisP
Copy link
Contributor Author

@eileenmcnaughton I don't understand why this error E2E\Core\PrevNextTest::testDeleteByCacheKey kicks in and fails the check. Any clues?

@eileenmcnaughton
Copy link
Contributor

@VangelisP it's a known intermittant error - we haven't gotten to the bottom of. If it's the only one you can ignore - although I might trigger them again so hopefully there will be a green tick when we come to review

@eileenmcnaughton
Copy link
Contributor

test this please

@eileenmcnaughton
Copy link
Contributor

I was able to replicate this fatal error in the UI & in a unit test (which I will submit). This is being added in a safe place & looks correct to me - with the test it will be locked in

@eileenmcnaughton eileenmcnaughton merged commit d2a94fa into civicrm:master Oct 28, 2019
@eileenmcnaughton eileenmcnaughton changed the title Adds missing join on the customtable of address customfields while exposed as profile dev/core#1324 Adds missing join on the customtable of address customfields while exposed as profile Oct 28, 2019
@VangelisP VangelisP deleted the dev_issue#1324 branch November 2, 2019 08:23
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.

2 participants