CRM-19681, fixed static function notice error
authorPradeep Nayak <pradpnayak@gmail.com>
Wed, 23 Nov 2016 14:21:18 +0000 (19:51 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Wed, 23 Nov 2016 14:21:18 +0000 (19:51 +0530)
----------------------------------------
* CRM-19681: date fields not respected when passed through url for report
  https://issues.civicrm.org/jira/browse/CRM-19681

CRM/Report/Utils/Get.php

index 8befb0a580dbca55cd48e43c7b286902d1f20454..21005661f3fe1926cc8ea5e6e0108fed28c0571a 100644 (file)
@@ -71,7 +71,7 @@ class CRM_Report_Utils_Get {
       $defaults["{$fieldName}_relative"] = $relative;
     }
     if ($relative) {
-      list($from, $to) = CRM_Report_Form::getFromTo($relative, NULL, NULL);
+      list($from, $to) = CRM_Utils_Date::getFromTo($relative, NULL, NULL);
       $from = substr($from, 0, 8);
       $to = substr($to, 0, 8);
     }