Fix missing add another profile option
authorGenericUK <mark@boardmark.co.uk>
Wed, 5 Nov 2014 12:46:02 +0000 (12:46 +0000)
committerGenericUK <mark@boardmark.co.uk>
Wed, 5 Nov 2014 12:46:02 +0000 (12:46 +0000)
Fixes an issue in events online registration when additional profiles are removed the add another profile option was also being removed.

templates/CRM/Event/Form/ManageEvent/Registration.tpl

index 1a4633ab6e90189d5f94390a4a0fdbe7619d239b..0d8e83c8e1a5c0296dc4f60dd73684c9e48b13bf 100644 (file)
@@ -164,11 +164,9 @@ class="crm-hover-button crm-button-add-profile"><span
               &nbsp;<span class='profile_bottom_link_remove'><a href="#"
                                                                 class="crm-hover-button crm-button-rem-profile"><span
                     class="icon ui-icon-trash"></span>{ts}remove profile{/ts}</a></span>
-              {if $smarty.foreach.profilePostIdName.last}
-                &nbsp;&nbsp;
-                <span class='profile_bottom_link'><a href="#" class="crm-hover-button crm-button-add-profile"><span
+                              &nbsp;&nbsp;
+                <span class='profile_bottom_link' {if !$smarty.foreach.profilePostIdName.last}style="display: none"{/if}><a href="#" class="crm-hover-button crm-button-add-profile"><span
                       class="icon ui-icon-plus"></span>{ts}add another profile (bottom of page){/ts}</a></span>
-              {/if}
               <br/><span class="profile-links"></span>
             </td>
           </tr>