CRM-18665 Fixing bug where event subtype doesn't reload when validation fails, and...
authorJoseph Lacey <joseph@palantetech.coop>
Mon, 6 Jun 2016 02:47:12 +0000 (20:47 -0600)
committerJoseph Lacey <joseph@palantetech.coop>
Mon, 6 Jun 2016 02:47:12 +0000 (20:47 -0600)
----------------------------------------
* CRM-18665: Custom data sets configured for an event type only aren't redisplayed after failing validation
  https://issues.civicrm.org/jira/browse/CRM-18665

CRM/Event/Form/ManageEvent/EventInfo.php

index d10dfb6b5790f789a91ecf87471c897f2ff9e05e..bf9b7872769ec2e49f8558b8ae5586f63acbba11 100644 (file)
@@ -62,6 +62,7 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent {
     if (!empty($_POST['hidden_custom'])) {
       $this->set('type', 'Event');
       $this->set('subType', CRM_Utils_Array::value('event_type_id', $_POST));
+      $this->assign('customDataSubType', CRM_Utils_Array::value('event_type_id', $_POST));
       $this->set('entityId', $this->_id);
 
       CRM_Custom_Form_CustomData::preProcess($this, NULL, $this->_eventType, 1, 'Event', $this->_id);