projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8f9582
)
CRM-19681, fixed code to respect date filters passed from url for report
author
Pradeep Nayak
<pradpnayak@gmail.com>
Wed, 23 Nov 2016 14:19:53 +0000
(19:49 +0530)
committer
Pradeep Nayak
<pradpnayak@gmail.com>
Wed, 23 Nov 2016 14:19:53 +0000
(19:49 +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
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Report/Utils/Get.php
b/CRM/Report/Utils/Get.php
index 8669159425a3b3c5277e1610f7a99c0157a0c42d..8befb0a580dbca55cd48e43c7b286902d1f20454 100644
(file)
--- a/
CRM/Report/Utils/Get.php
+++ b/
CRM/Report/Utils/Get.php
@@
-66,7
+66,10
@@
class CRM_Report_Utils_Get {
$from = self::getTypedValue("{$fieldName}_from", $type);
$to = self::getTypedValue("{$fieldName}_to", $type);
- $relative = CRM_Utils_Array::value("{$fieldName}_relative", $_GET);
+ $relative = self::getTypedValue("{$fieldName}_relative", CRM_Utils_Type::T_STRING);
+ if ($relative !== NULL) {
+ $defaults["{$fieldName}_relative"] = $relative;
+ }
if ($relative) {
list($from, $to) = CRM_Report_Form::getFromTo($relative, NULL, NULL);
$from = substr($from, 0, 8);