From 8e4742fc03eb7448d9e2249ab069398b94dd2aa8 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 1 Sep 2015 18:09:40 +0530 Subject: [PATCH] CRM-17121 fix - Advanced Search on Event Type OR Address returns only Event results https://issues.civicrm.org/jira/browse/CRM-17121 --- CRM/Event/BAO/Query.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Event/BAO/Query.php b/CRM/Event/BAO/Query.php index 1f5dc93c51..0ac4d404d3 100644 --- a/CRM/Event/BAO/Query.php +++ b/CRM/Event/BAO/Query.php @@ -309,9 +309,9 @@ class CRM_Event_BAO_Query { $value, "Boolean" ); - if ($value) { - $query->_qill[$grouping][] = ts("Participant is a Test"); - } + + $isTest = $value ? 'a Test' : 'not a Test'; + $query->_qill[$grouping][] = ts("Participant is %1", array(1 => $isTest)); $query->_tables['civicrm_participant'] = $query->_whereTables['civicrm_participant'] = 1; } return; -- 2.25.1