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:
5aec1a4
)
CRM-16920 - When coding a report template, can specify a default 'from' and 'to'...
author
monishdeb
<monish.deb@webaccessglobal.com>
Fri, 18 Sep 2015 20:39:45 +0000
(
02:09
+0530)
committer
monishdeb
<monish.deb@webaccessglobal.com>
Fri, 18 Sep 2015 20:39:45 +0000
(
02:09
+0530)
https://issues.civicrm.org/jira/browse/CRM-16920
CRM/Report/Form.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Report/Form.php
b/CRM/Report/Form.php
index 83f54aa7df01008d626fd7b88fa121d0266b7b2d..f2087788e4a9cf852b955bda7024900056561860 100644
(file)
--- a/
CRM/Report/Form.php
+++ b/
CRM/Report/Form.php
@@
-813,6
+813,10
@@
class CRM_Report_Form extends CRM_Core_Form {
}
}
else {
+ if ((CRM_Utils_Array::value('type', $field) & CRM_Utils_Type::T_INT) && is_array($field['default'])) {
+ $this->_defaults["{$fieldName}_min"] = CRM_Utils_Array::value('min', $field['default']);
+ $this->_defaults["{$fieldName}_max"] = CRM_Utils_Array::value('max', $field['default']);
+ }
$this->_defaults["{$fieldName}_value"] = $field['default'];
}
}