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/issues/743, Donot join relationship table when not required #14082

Merged
merged 1 commit into from
May 25, 2019

Conversation

pradpnayak
Copy link
Contributor

Overview

https://lab.civicrm.org/dev/core/issues/743

Before

returned incorrect results

After

returned correct results

Technical Details

Used CRM_Utils_System::isNull() over isset() since all the fields in filters are always set and may be empty. isNull() functions handles isset and empty very well.

@civibot
Copy link

civibot bot commented Apr 18, 2019

(Standard links)

@civibot civibot bot added the master label Apr 18, 2019
@gareth-circle
Copy link

Thanks @pradpnayak !

I can confirm this fixes the issue for me.

@eileenmcnaughton
Copy link
Contributor

Merging based on @gareth-circle & the change appearing safe & sensible - although @pradpnayak I would note that moving from setting $relField to using $this-isTableSelected(..) when adding the join would be a code improvement here

@eileenmcnaughton eileenmcnaughton merged commit 3ea41a9 into civicrm:master May 25, 2019
@pradpnayak pradpnayak deleted the caseReport branch March 23, 2020 01:11
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