From fb5283a0c96376e3e3c4ab53cfeab0aed06d242b Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 25 Mar 2019 10:45:32 +0000 Subject: [PATCH] dev/core/issues/709, fixed date filter for custom fields --- CRM/Report/Form.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index 06c3df5caf..0fc3f9f408 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -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} )"; } -- 2.25.1