From: Ken West Date: Wed, 20 Apr 2016 11:58:06 +0000 (+1000) Subject: CRM-18447 Cannot create Survey when Events have 'is required' custom data X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9e032034271315808e052136fecc6d9e6052a8ca;p=civicrm-core.git CRM-18447 Cannot create Survey when Events have 'is required' custom data --- diff --git a/CRM/Campaign/Form/Survey.php b/CRM/Campaign/Form/Survey.php index d13ca39a91..133b47853f 100644 --- a/CRM/Campaign/Form/Survey.php +++ b/CRM/Campaign/Form/Survey.php @@ -80,7 +80,7 @@ class CRM_Campaign_Form_Survey extends CRM_Core_Form { // when custom data is included in this page if (!empty($_POST['hidden_custom'])) { - $this->set('type', 'Event'); + $this->set('type', 'Survey'); $this->set('entityId', $this->_surveyId); CRM_Custom_Form_CustomData::preProcess($this, NULL, NULL, 1, 'Survey', $this->_surveyId); CRM_Custom_Form_CustomData::buildQuickForm($this);