From: Dave Greenberg Date: Wed, 8 May 2013 00:04:50 +0000 (-0700) Subject: Add back in the NONE option for additional participant profile bottom slots. The... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=47ecc69e9abc2f4e982ef3e29396985d926c8ed2;p=civicrm-core.git Add back in the NONE option for additional participant profile bottom slots. The option to NOT have a second profile for additional participants was lost in a regression between 4.1 and 4.2. --- diff --git a/CRM/Event/Form/ManageEvent/Registration.php b/CRM/Event/Form/ManageEvent/Registration.php index de98f711e7..1935bc7892 100644 --- a/CRM/Event/Form/ManageEvent/Registration.php +++ b/CRM/Event/Form/ManageEvent/Registration.php @@ -350,7 +350,8 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent $form->add('select', 'custom_post_id', ts('Include Profile') . '
' . ts('(bottom of page)'), $mainProfiles); $form->add('select', 'additional_custom_pre_id', ts('Profile for Additional Participants') . '
' . ts('(top of page)'), $addtProfiles); - $form->add('select', 'additional_custom_post_id', ts('Profile for Additional Participants') . '
' . ts('(bottom of page)'), $addtProfiles); + // Allow user to NOT provide a bottom profile for Additional Participant registration + $form->add('select', 'additional_custom_post_id', ts('Profile for Additional Participants') . '
' . ts('(bottom of page)'), array('none' => ts('- no profile -')) + $addtProfiles); } function buildMultipleProfileBottom(&$form, $count, $prefix = '', $name = 'Include Profile') { @@ -362,7 +363,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent if ($prefix == 'additional_') { $mainProfiles = array( - '' => ts('- same as for main contact -')) + $profiles; + '' => ts('- same as for main contact -'), 'none' => ts('- no profile -')) + $profiles; } else { $mainProfiles = array( diff --git a/templates/CRM/Event/Form/ManageEvent/Registration.tpl b/templates/CRM/Event/Form/ManageEvent/Registration.tpl index ac628658ee..d6b408311d 100644 --- a/templates/CRM/Event/Form/ManageEvent/Registration.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Registration.tpl @@ -194,7 +194,7 @@ {/if} - {ts}Click here for new profile{/ts} + {ts}Click here to create a new profile{/ts}