dev/core/issues/709, fixed date filter for custom fields
authorPradeep Nayak <pradpnayak@gmail.com>
Mon, 25 Mar 2019 10:45:32 +0000 (10:45 +0000)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 25 Mar 2019 10:45:32 +0000 (10:45 +0000)
CRM/Report/Form.php

index 06c3df5caf8b93b18c0dc5dc09cc8a2d65554153..0fc3f9f40826a499a4c479c79f086b79ac42e3db 100644 (file)
@@ -2114,12 +2114,10 @@ class CRM_Report_Form extends CRM_Core_Form {
     list($from, $to) = $this->getFromTo($relative, $from, $to, $fromTime, $toTime);
 
     if ($from) {
-      $from = ($type == CRM_Utils_Type::T_DATE) ? substr($from, 0, 8) : $from;
       $clauses[] = "( {$fieldName} >= $from )";
     }
 
     if ($to) {
-      $to = ($type == CRM_Utils_Type::T_DATE) ? substr($to, 0, 8) : $to;
       $clauses[] = "( {$fieldName} <= {$to} )";
     }