From 57e76da7bc1e1e4dd8c2a859c6e9b47618315fdb Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 9 Jan 2019 18:11:35 +1300 Subject: [PATCH] Add default for domain_id for report_instance. This is consistent with other api like Job, MembershipType, PaymentProcessor --- api/v3/ReportInstance.php | 1 + 1 file changed, 1 insertion(+) 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; -- 2.25.1