From 15128151787e28a8451be72b5db3371d29d7014e Mon Sep 17 00:00:00 2001
From: Kurund Jalmi <kurund@civicrm.org>
Date: Mon, 20 May 2013 00:07:52 -0400
Subject: [PATCH] more work on CRM-12466

---
 CRM/Contact/BAO/GroupContactCache.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php
index 48436136b9..33f59d79c0 100644
--- a/CRM/Contact/BAO/GroupContactCache.php
+++ b/CRM/Contact/BAO/GroupContactCache.php
@@ -483,8 +483,7 @@ AND  civicrm_group_contact.group_id = $groupID ";
 SELECT     gc.group_id, gc.contact_id, g.title, g.children, g.description
 FROM       civicrm_group_contact_cache gc
 INNER JOIN civicrm_group g ON g.id = gc.group_id
-WHERE      g.saved_search_id IS NOT NULL AND
-           gc.contact_id IN ($contactIDString)
+WHERE      gc.contact_id IN ($contactIDString)
            $hiddenClause
 ORDER BY   gc.contact_id, g.children
 ";
-- 
GitLab