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'
);
}
if ($this->_eventType) {
$this->assign('customDataSubType', $this->_eventType);
}
+ $this->assign('entityId', $this->_id);
$this->_first = TRUE;
$this->applyFilter('__ALL__', 'trim');