From: demeritcowboy Date: Fri, 26 Jan 2024 17:15:40 +0000 (-0500) Subject: the field needs null X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=81a9db62a1a0cecf00fd01da715fc307eec73139;p=civicrm-core.git the field needs null --- diff --git a/CRM/Report/BAO/ReportInstance.php b/CRM/Report/BAO/ReportInstance.php index ddbfe9fd16..260f378620 100644 --- a/CRM/Report/BAO/ReportInstance.php +++ b/CRM/Report/BAO/ReportInstance.php @@ -29,6 +29,11 @@ class CRM_Report_BAO_ReportInstance extends CRM_Report_DAO_ReportInstance implem return NULL; } + if (empty($params['grouprole'])) { + // an empty array is getting stored as '' but it needs to be null + $params['grouprole'] = NULL; + } + if (!isset($params['id'])) { $params['domain_id'] ??= CRM_Core_Config::domainID(); // CRM-17256 set created_id on report creation.