From 9e032034271315808e052136fecc6d9e6052a8ca Mon Sep 17 00:00:00 2001 From: Ken West Date: Wed, 20 Apr 2016 21:58:06 +1000 Subject: [PATCH] CRM-18447 Cannot create Survey when Events have 'is required' custom data --- CRM/Campaign/Form/Survey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1