Skip to content
Snippets Groups Projects
Unverified Commit 052958e3 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #18493 from mlutfy/campaignReportDefaults

Fix default report permissions when creating reports from CiviCampaign
parents b23902a1 e5e18842
No related branches found
No related tags found
No related merge requests found
......@@ -461,6 +461,8 @@ class CRM_Campaign_Form_Survey_Results extends CRM_Campaign_Form_Survey {
}
$this->_createNew = TRUE;
$this->_id = CRM_Report_Utils_Report::getInstanceIDForValue('survey/detail');
CRM_Report_Form_Instance::setDefaultValues($this, $this->_defaults);
$this->_params = array_merge($this->_params, $this->_defaults);
CRM_Report_Form_Instance::postProcess($this, FALSE);
$query = "SELECT MAX(id) FROM civicrm_report_instance WHERE name = %1";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment