diff --git a/civicrm_event_parent/civicrm_event_parent.module b/civicrm_event_parent/civicrm_event_parent.module index 594e019c..510b5f20 100644 --- a/civicrm_event_parent/civicrm_event_parent.module +++ b/civicrm_event_parent/civicrm_event_parent.module @@ -88,6 +88,7 @@ function civicrm_event_parent_civicrm_buildForm( $formName, &$form ) { $sel_html = $sel->toHtml(); $sel_html = ''.$sel_html.'
'.t('Relationship type for registeration agent of participant. When enable this feature with profile option above, event registration will have two form to complete. One is profile crate form, another is normal event register. When a participant go join the event, they will bring to first form of profile to fill in agent information. After that, the form will redirect to normal event registeration. And these two individual will connect with seleted relationship of this option.').''; $sel_html = str_replace("\n", "", $sel_html); + $sel_html = str_replace("'", "\'", $sel_html); drupal_add_js("jQuery(document).ready(function($){ var parent_relation_html = '{$sel_html}'; $(parent_relation_html).insertBefore('.crm-event-manage-registration-form-block-custom_pre_id'); });",'inline', 'footer'); @@ -107,6 +108,7 @@ function civicrm_event_parent_civicrm_buildForm( $formName, &$form ) { $sel_html = $sel->toHtml(); $sel_html = ''.$sel_html.'
'.t('Pre-registeration profile for registration agent. Using this option will also need to config relationship type below. This form will only collect contact data and build relationships. People who enter this form will not count in participant.').'
'.t('You may need to visit this event registeration page by anonymous user and logged user, to make sure whole process fit your needs.').'
'; $sel_html = str_replace("\n", "", $sel_html); + $sel_html = str_replace("'", "\'", $sel_html); drupal_add_js("jQuery(document).ready(function($){ var parent_relation_html = '{$sel_html}'; $(parent_relation_html).insertBefore('.crm-event-manage-registration-form-block-custom_pre_id'); });",array('type' => 'inline', 'scope' => 'footer')); }