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

Fix issue with building smart groups when is empty #17622

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

seamuslee001
Copy link
Contributor

Overview

A brief description of the pull request. Keep technical jargon to a minimum. Hyperlink relevant discussions.

Before

Fixes an issue which was reported in stack exchange https://civicrm.stackexchange.com/questions/35868/smart-group-db-error and due to a $contctQueries array like

nothing... $contactQueries is
Array
(
    [0] => 
    [1] => SELECT 27 as group_id, contact_id as contact_id
       FROM   civicrm_group_contact
       WHERE  civicrm_group_contact.status = 'Added' AND civicrm_group_contact.group_id = 27 
)

After

Smart Groups build correctly

@civibot
Copy link

civibot bot commented Jun 15, 2020

(Standard links)

@civibot civibot bot added the 5.27 label Jun 15, 2020
@seamuslee001 seamuslee001 merged commit d819ca1 into civicrm:5.27 Jun 16, 2020
@seamuslee001 seamuslee001 deleted the smart_group_error branch June 16, 2020 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants