From: jitendrapurohit Date: Fri, 12 Dec 2014 09:05:03 +0000 (+0530) Subject: CRM-15662 fix for ACL's do not work when target is a smart group X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d51770f05e93d2ecfb02a76053bc1f82d67d62c3;p=civicrm-core.git CRM-15662 fix for ACL's do not work when target is a smart group --- 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 . ")"; }