Skip to content
Snippets Groups Projects
Commit 41a9a037 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

Merge pull request #1718 from monishdeb/CRM-13426

CRM-13426 fix - Fatal error on search that includes a smart group created by custom search
parents 1d0c696a eab13399
Branches
Tags
No related merge requests found
......@@ -491,7 +491,7 @@ WHERE civicrm_group_contact.status = 'Added'
$result = CRM_Core_DAO::executeQuery($insertSql);
CRM_Core_DAO::executeQuery(
"INSERT IGNORE INTO civicrm_group_contact_cache (contact_id, group_id)
SELECT DISTINCT id, group_id FROM $tempTable
SELECT DISTINCT $idName, group_id FROM $tempTable
");
CRM_Core_DAO::executeQuery(" DROP TABLE $tempTable");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment