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#175 - Smart group involving relationship type filter display… #12301

Merged
merged 2 commits into from
Jun 11, 2018

Conversation

jitendrapurohit
Copy link
Contributor

@jitendrapurohit jitendrapurohit commented Jun 11, 2018

… incorrect results

Overview

Smart group involving relationship type filter display incorrect results.

Before

replicated on dmaster -

  • Advanced Search -> Relationship tab -> type = Employer of (or any b_a reln type) -> Search (results all organization contacts).
  • Proceed and add all of them to a smart group.
  • When you click on Done after creating smart group, you are navigated to advanced search result with the contacts belonging to this group. All contacts are incorrectly displayed.

Another way to replicate -

  • Advanced Search -> Relationship tab -> type = Employer of (or any b_a reln type) -> Search (results all organization contacts).
  • Click on Search button again. All contacts are replaced with Employee of relationship

After

Smart groups and new search results are fixed.

Technical Details

Not sure why static variable is appended with the reltype value. Mostly, this seems to be a typo added in https://github.com/civicrm/civicrm-core/pull/11595/files. @seamuslee001 Can you pls confirm?

Comments

Added unit test.


Gitlab Issue - https://lab.civicrm.org/dev/core/issues/175

@civibot
Copy link

civibot bot commented Jun 11, 2018

(Standard links)

@seamuslee001
Copy link
Contributor

Agree it looks like a typo on my part,

(CiviCRM Review Template WORD-1.1)

ping @mlutfy Mathieu this maybe relevant to you

@seamuslee001 seamuslee001 merged commit 830f1c7 into civicrm:master Jun 11, 2018
@jitendrapurohit jitendrapurohit deleted the core-175 branch June 12, 2018 02:27
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