Skip to content
Snippets Groups Projects
Unverified Commit dfcc1e08 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #14121 from civicrm/revert-14063-core-553

Revert "#553: Creating new event takes value from default value not from saved template for custom fields"
parents f90ffe41 9ed2ee07
Branches
Tags
No related merge requests found
......@@ -48,11 +48,10 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent {
parent::preProcess();
$this->assign('selectedChild', 'settings');
$entityID = $this->_id ?: $this->_templateId;
if ($entityID) {
$this->assign('entityID', $entityID);
if ($this->_id) {
$this->assign('entityID', $this->_id);
$eventType = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event',
$entityID,
$this->_id,
'event_type_id'
);
}
......@@ -128,6 +127,7 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent {
if ($this->_eventType) {
$this->assign('customDataSubType', $this->_eventType);
}
$this->assign('entityId', $this->_id);
$this->_first = TRUE;
$this->applyFilter('__ALL__', 'trim');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment