From c66cc06f7b59471c2ac20ec371b1314f1da8cbe3 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Tue, 3 Sep 2013 16:41:12 +0530 Subject: [PATCH] CRM-13324 fix ---------------------------------------- * CRM-13324: Reserve respondent process of survey not working if contacts are filter by particular group, and all records are selected for reserving. http://issues.civicrm.org/jira/browse/CRM-13324 --- CRM/Contact/BAO/Query.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index cf36216c85..7df06fbef8 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -1303,7 +1303,9 @@ class CRM_Contact_BAO_Query { $this->_element['group_contact_id'] = 1; $this->_select['status'] = "$tbName.status as status"; $this->_element['status'] = 1; - $this->_tables[$tbName] = 1; + if (empty($this->_tables[$tbName])) { + $this->_tables[$tbName] = 1; + } } } $this->_useGroupBy = TRUE; -- 2.25.1