From: Joseph Lacey Date: Mon, 6 Jun 2016 02:47:12 +0000 (-0600) Subject: CRM-18665 Fixing bug where event subtype doesn't reload when validation fails, and... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d6dd7344eaf3bac98585b072856b922fde4544fa;p=civicrm-core.git CRM-18665 Fixing bug where event subtype doesn't reload when validation fails, and therefore the custom data sets don't render. ---------------------------------------- * 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 --- diff --git a/CRM/Event/Form/ManageEvent/EventInfo.php b/CRM/Event/Form/ManageEvent/EventInfo.php index d10dfb6b57..bf9b787276 100644 --- a/CRM/Event/Form/ManageEvent/EventInfo.php +++ b/CRM/Event/Form/ManageEvent/EventInfo.php @@ -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);