Skip to content

Commit

Permalink
Merge pull request #13426 from eileenmcnaughton/report_instance_domain
Browse files Browse the repository at this point in the history
Add default for domain_id for report_instance.
  • Loading branch information
seamuslee001 authored Jan 9, 2019
2 parents 7f4a500 + 57e76da commit 93ab3f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/v3/ReportInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function civicrm_api3_report_instance_create($params) {
function _civicrm_api3_report_instance_create_spec(&$params) {
$params['report_id']['api.required'] = 1;
$params['title']['api.required'] = 1;
$params['domain_id']['api.default'] = CRM_Core_Config::domainID();
$params['view_mode']['api.default'] = 'view';
$params['view_mode']['title'] = ts('View Mode for Navigation URL');
$params['view_mode']['type'] = CRM_Utils_Type::T_STRING;
Expand Down

0 comments on commit 93ab3f3

Please sign in to comment.