From: yashodha Date: Tue, 7 Jun 2016 09:56:48 +0000 (+0530) Subject: CRM-18554: Using IS EMPTY operator for some date fields crashes 4.7.7 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f1339cf223eb77638a96a4920131318aba435af5;p=civicrm-core.git CRM-18554: Using IS EMPTY operator for some date fields crashes 4.7.7 ---------------------------------------- * CRM-18554: Using IS EMPTY operator for some date fields crashes 4.7.7 https://issues.civicrm.org/jira/browse/CRM-18554 --- diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 91cfb0f614..561ae08e24 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -5085,7 +5085,7 @@ SELECT COUNT( conts.total_amount ) as cancel_count, } if ($date) { - $this->_where[$grouping][] = self::buildClause("{$tableName}.{$dbFieldName}", $op, $date); + $this->_where[$grouping][] = "{$tableName}.{$dbFieldName} $op $date"; } else { $this->_where[$grouping][] = self::buildClause("{$tableName}.{$dbFieldName}", $op);