From 47ecc69e9abc2f4e982ef3e29396985d926c8ed2 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Tue, 7 May 2013 17:04:50 -0700 Subject: [PATCH] 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. --- CRM/Event/Form/ManageEvent/Registration.php | 5 +++-- templates/CRM/Event/Form/ManageEvent/Registration.tpl | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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} -- 2.25.1