CRM-18447 Cannot create Survey when Events have 'is required' custom data
authorKen West <ken.west@internode.on.net>
Wed, 20 Apr 2016 11:58:06 +0000 (21:58 +1000)
committerKen West <ken.west@internode.on.net>
Wed, 20 Apr 2016 11:58:06 +0000 (21:58 +1000)
CRM/Campaign/Form/Survey.php

index d13ca39a91e818e2b08f30634380ae55795fc5c4..133b47853f672a4409213ff872ee47ccca103df1 100644 (file)
@@ -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);