Merge pull request #15614 from seamuslee001/convert_case_date_jcalendar
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 26 Oct 2019 10:04:02 +0000 (23:04 +1300)
committerGitHub <noreply@github.com>
Sat, 26 Oct 2019 10:04:02 +0000 (23:04 +1300)
dev/core#561 Convert Case date fields on search forms from jcalendar …

1  2 
CRM/Case/BAO/Query.php

index e13814057cfb65badefd840d902e8170725750da,082268caa39191bde8f40ff2b221e12fa440fc15..646c552ca39ee0f15d9b260075a301dd32a87d4e
@@@ -258,10 -258,13 +258,15 @@@ class CRM_Case_BAO_Query extends CRM_Co
     *
     * @param array $values
     * @param CRM_Contact_BAO_Query $query
 +   *
 +   * @throws \CRM_Core_Exception
     */
    public static function whereClauseSingle(&$values, &$query) {
+     if ($query->buildDateRangeQuery($values)) {
+       // @todo - move this to Contact_Query in or near the call to
+       // $this->buildRelativeDateQuery($values);
+       return;
+     }
      list($name, $op, $value, $grouping, $wildcard) = $values;
      $val = $names = [];
      switch ($name) {