Add back in the NONE option for additional participant profile bottom slots. The...
authorDave Greenberg <dave@civicrm.org>
Wed, 8 May 2013 00:04:50 +0000 (17:04 -0700)
committerDave Greenberg <dave@civicrm.org>
Wed, 8 May 2013 00:04:50 +0000 (17:04 -0700)
CRM/Event/Form/ManageEvent/Registration.php
templates/CRM/Event/Form/ManageEvent/Registration.tpl

index de98f711e7b77dab1aa0a16a1013afb1b26ad759..1935bc78920b5eb86d41d305d1b0ea45ba3126c8 100644 (file)
@@ -350,7 +350,8 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent
     $form->add('select', 'custom_post_id', ts('Include Profile') . '<br />' . ts('(bottom of page)'), $mainProfiles);
 
     $form->add('select', 'additional_custom_pre_id', ts('Profile for Additional Participants') . '<br />' . ts('(top of page)'), $addtProfiles);
-    $form->add('select', 'additional_custom_post_id', ts('Profile for Additional Participants') . '<br />' . 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') . '<br />' . 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(
index ac628658ee583eb950e2a6b77667be991dbfaaf7..d6b408311da39e53995fe285d4319646686c78e7 100644 (file)
    {/if}
         <tr class='crm-event-manage-registration-form-block-create-new-profile'>
             <td class="label"></td>
-            <td><a href="{crmURL p='civicrm/admin/uf/group/add' q='reset=1&action=add'}" target="_blank">{ts}Click here for new profile{/ts}</a></td>
+            <td><a href="{crmURL p='civicrm/admin/uf/group/add' q='reset=1&action=add'}" target="_blank">{ts}Click here to create a new profile{/ts}</a></td>
         </tr>
         </table>
         </div>