Fixes CRM-19323: Advanced search relationship date clause descriptions are inaccurate.
authorRavi Sharma <ravi.sharma@kayako.com>
Thu, 8 Sep 2016 09:40:34 +0000 (15:10 +0530)
committerRavi Sharma <ravi.sharma@kayako.com>
Thu, 8 Sep 2016 09:40:34 +0000 (15:10 +0530)
CRM/Contact/BAO/Query.php

index eeb4281951eff88baaa164c8ec70731f4dda8bfa..7a7c9d603c2f608cecc54ef6481b1859d8d22fb9 100644 (file)
@@ -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);
       }
     }
   }