From: eileen Date: Wed, 9 Jan 2019 05:11:35 +0000 (+1300) Subject: Add default for domain_id for report_instance. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=57e76da7bc1e1e4dd8c2a859c6e9b47618315fdb;p=civicrm-core.git Add default for domain_id for report_instance. This is consistent with other api like Job, MembershipType, PaymentProcessor --- diff --git a/api/v3/ReportInstance.php b/api/v3/ReportInstance.php index 5e4b000d19..9aa67bc356 100644 --- a/api/v3/ReportInstance.php +++ b/api/v3/ReportInstance.php @@ -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;