From d51770f05e93d2ecfb02a76053bc1f82d67d62c3 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Fri, 12 Dec 2014 14:35:03 +0530 Subject: [PATCH] CRM-15662 fix for ACL's do not work when target is a smart group --- CRM/Contact/BAO/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index ac81f718ad..1620bb6ca1 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -2891,7 +2891,7 @@ WHERE id IN ( $groupIDs ) $tableAlias = "civicrm_group_contact_cache_{$groupIDsFiltered}"; } - $this->_tables[$tableAlias] = $this->_whereTables[$tableAlias] = " LEFT JOIN civicrm_group_contact_cache `{$tableAlias}` ON {$joinTable}.id = `{$tableAlias}`.contact_id "; + $this->_tables["`{$tableAlias}`"] = $this->_whereTables["`{$tableAlias}`"] = " LEFT JOIN civicrm_group_contact_cache `{$tableAlias}` ON {$joinTable}.id = `{$tableAlias}`.contact_id "; return "`{$tableAlias}`.group_id IN (" . $groupIDsFiltered . ")"; } -- 2.25.1