Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
b9409a10
Commit
b9409a10
authored
4 years ago
by
Seamus Lee
Browse files
Options
Downloads
Patches
Plain Diff
Fix issue with building smart groups when is empty
parent
568689a7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Contact/BAO/GroupContactCache.php
+3
-1
3 additions, 1 deletion
CRM/Contact/BAO/GroupContactCache.php
with
3 additions
and
1 deletion
CRM/Contact/BAO/GroupContactCache.php
+
3
−
1
View file @
b9409a10
...
...
@@ -489,7 +489,9 @@ WHERE id IN ( $groupIDs )
$tempTable
=
$groupContactsTempTable
->
getName
();
$groupContactsTempTable
->
createWithColumns
(
'contact_id int, group_id int, UNIQUE UI_contact_group (contact_id,group_id)'
);
$contactQueries
[]
=
$sql
;
if
(
!
empty
(
$sql
))
{
$contactQueries
[]
=
$sql
;
}
// lets also store the records that are explicitly added to the group
// this allows us to skip the group contact LEFT JOIN
$contactQueries
[]
=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment