From: Ravi Sharma Date: Thu, 8 Sep 2016 09:40:34 +0000 (+0530) Subject: Fixes CRM-19323: Advanced search relationship date clause descriptions are inaccurate. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b0e84efdb5854ad9f12e68ddc345a7ca94cef9c4;p=civicrm-core.git Fixes CRM-19323: Advanced search relationship date clause descriptions are inaccurate. --- diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index eeb4281951..7a7c9d603c 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -4138,12 +4138,12 @@ civicrm_relationship.is_permission_a_b = 0 if (!empty($dateValueLow)) { $date = date('Ymd', strtotime($dateValueLow[2])); $where[$grouping][] = "civicrm_relationship.$dateField >= $date"; - $this->_qill[$grouping][] = ($dateField == 'end_date' ? ts('Relationship Ended on or After') : ts('Relationship Recorded Start Date On or Before')) . " " . CRM_Utils_Date::customFormat($date); + $this->_qill[$grouping][] = ($dateField == 'end_date' ? ts('Relationship Ended on or Before') : ts('Relationship Recorded Start Date On or After')) . " " . CRM_Utils_Date::customFormat($date); } if (!empty($dateValueHigh)) { $date = date('Ymd', strtotime($dateValueHigh[2])); $where[$grouping][] = "civicrm_relationship.$dateField <= $date"; - $this->_qill[$grouping][] = ($dateField == 'end_date' ? ts('Relationship Ended on or Before') : ts('Relationship Recorded Start Date On or After')) . " " . CRM_Utils_Date::customFormat($date); + $this->_qill[$grouping][] = ($dateField == 'end_date' ? ts('Relationship Ended on or After') : ts('Relationship Recorded Start Date On or Before')) . " " . CRM_Utils_Date::customFormat($date); } } }