X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FForm%2FManageEvent.php;h=62b688c2e9af145009abe60f1a961cc62fb4475b;hb=21fced3b2b374d3e26aedcc7672d9a21273672d8;hp=1b873b1748ef72974b7d5df84cf59a207ba09238;hpb=a055fd3bcb8341e6a9c25e32432cf4f4776a2781;p=civicrm-core.git diff --git a/CRM/Event/Form/ManageEvent.php b/CRM/Event/Form/ManageEvent.php index 1b873b1748..62b688c2e9 100644 --- a/CRM/Event/Form/ManageEvent.php +++ b/CRM/Event/Form/ManageEvent.php @@ -1,9 +1,9 @@ _id = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, NULL, 'GET'); if ($this->_id) { $this->assign('eventId', $this->_id); - if (empty($this->_addProfileBottom) && empty($this->_addProfileBottomAdd)) { + if (!empty($this->_addBlockName) && empty($this->_addProfileBottom) && empty($this->_addProfileBottomAdd)) { $this->add('hidden', 'id', $this->_id); } $this->_single = TRUE; @@ -367,6 +367,9 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form { } } + /** + * @return string + */ function getTemplateFileName() { if ($this->controller->getPrint() || $this->getVar('_id') <= 0 || $this->_action & CRM_Core_Action::DELETE) { return parent::getTemplateFileName(); @@ -377,5 +380,13 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form { return 'CRM/Event/Form/ManageEvent/Tab.tpl'; } } + + /** + * Pre-load libraries required by Online Registration Profile fields + */ + static function addProfileEditScripts() { + CRM_UF_Page_ProfileEditor::registerProfileScripts(); + CRM_UF_Page_ProfileEditor::registerSchemas(array('IndividualModel', 'ParticipantModel')); + } }