From: eileen Date: Sat, 16 Nov 2019 02:23:35 +0000 (+1300) Subject: Fix incorrect reference on extracted function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b4d8c5506c4103b904b9d2f770e75da1eb0a774e;p=civicrm-core.git Fix incorrect reference on extracted function Per https://github.com/civicrm/civicrm-core/pull/15803#pullrequestreview-317543503 --- diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 081ee78c96..1dc98f7504 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -7217,10 +7217,10 @@ AND displayRelType.is_active = 1 public function handleWhereFromMetadata($fieldSpec, $name, $value, $op, $grouping = 0) { $this->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause($fieldSpec['where'], $op, $value, CRM_Utils_Type::typeToString($fieldSpec['type'])); $this->_qill[$grouping][] = $this->getQillForField($name, $value, $op, $fieldSpec); - if (!isset($query->_tables[$fieldSpec['table_name']])) { + if (!isset($this->_tables[$fieldSpec['table_name']])) { $this->_tables[$fieldSpec['table_name']] = 1; } - if (!isset($query->_whereTables[$fieldSpec['table_name']])) { + if (!isset($this->_whereTables[$fieldSpec['table_name']])) { $this->_whereTables[$fieldSpec['table_name']] = 1; } }