X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FReportTemplate.php;h=b52cefa15fe461d2c70c576992cfa097aa6e9533;hb=2f99f83c74220c235812465bc06792a9a0f98901;hp=37ffaeb965254375f793c0501a0203b57a92c316;hpb=53f539e371fea2e397eaea254f720ac07328ed64;p=civicrm-core.git diff --git a/api/v3/ReportTemplate.php b/api/v3/ReportTemplate.php index 37ffaeb965..b52cefa15f 100644 --- 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( - '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(); @@ -108,6 +108,9 @@ function _civicrm_api3_report_template_getrows($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();