projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2362 from totten/4.4-sync-redirect
[civicrm-core.git]
/
api
/
v3
/
ReportTemplate.php
diff --git
a/api/v3/ReportTemplate.php
b/api/v3/ReportTemplate.php
index 37ffaeb965254375f793c0501a0203b57a92c316..b52cefa15fe461d2c70c576992cfa097aa6e9533 100644
(file)
--- a/
api/v3/ReportTemplate.php
+++ b/
api/v3/ReportTemplate.php
@@
-93,10
+93,10
@@
function civicrm_api3_report_template_getrows($params) {
function _civicrm_api3_report_template_getrows($params) {
$class = civicrm_api3('option_value', 'getvalue', array(
function _civicrm_api3_report_template_getrows($params) {
$class = civicrm_api3('option_value', 'getvalue', array(
-
'option_group_id' => 'report_template',
-
'return' => 'name',
-
'value' => $params['report_id'],
- )
+ 'option_group_id' => 'report_template',
+ 'return' => 'name',
+ 'value' => $params['report_id'],
+
)
);
$reportInstance = new $class();
);
$reportInstance = new $class();
@@
-108,6
+108,9
@@
function _civicrm_api3_report_template_getrows($params) {
$reportInstance->preProcess();
$reportInstance->setDefaultValues(FALSE);
$reportInstance->setParams(array_merge($reportInstance->getDefaultValues(), $params));
$reportInstance->preProcess();
$reportInstance->setDefaultValues(FALSE);
$reportInstance->setParams(array_merge($reportInstance->getDefaultValues(), $params));
+ $options = _civicrm_api3_get_options_from_params($params, TRUE,'report_template','get');
+ $reportInstance->setLimitValue($options['limit']);
+ $reportInstance->setOffsetValue($options['offset']);
$reportInstance->beginPostProcessCommon();
$sql = $reportInstance->buildQuery();
$rows = array();
$reportInstance->beginPostProcessCommon();
$sql = $reportInstance->buildQuery();
$rows = array();