CRM-15595 - Individual sub-type custom fields don't appear in online event registration
[civicrm-core.git] / CRM / Event / Form / ManageEvent.php
index a4702ebeb298b3812de048ab5b3f481241d41a5c..62b688c2e9af145009abe60f1a961cc62fb4475b 100644 (file)
@@ -380,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'));
+  }
 }