Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-08-04-22-25-32
[civicrm-core.git] / templates / CRM / Event / Form / ManageEvent / Registration.tpl
index b03c2c3e3a905e914ae35a647cfc9026b342a428..cbc515ae9ae271c686c4047c4663469f2a0f724e 100644 (file)
@@ -26,7 +26,7 @@
 {if $addProfileBottomAdd OR $addProfileBottom}
   <td scope="row" class="label"
       width="20%">{if $addProfileBottomAdd }{$form.additional_custom_post_id_multiple[$profileBottomNumAdd].label}
-    {else}{$form.custom_post_id[$profileBottomNum].label}{/if}</td>
+    {else}{$form.custom_post_id_multiple[$profileBottomNum].label}{/if}</td>
   <td>{if $addProfileBottomAdd }{$form.additional_custom_post_id_multiple[$profileBottomNumAdd].html}{else}{$form.custom_post_id_multiple[$profileBottomNum].html}{/if}
     &nbsp;<span class='profile_bottom_link_remove'><a href="#" class="crm-hover-button crm-button-rem-profile"
                                                       data-addtlPartc="{$addProfileBottomAdd}"><span
@@ -420,7 +420,7 @@ invert              = 0
 
         var addtlPartc = $(this).data('addtlPartc');
 
-        if ($(this).closest("tr").attr("class").indexOf("additional_custom_post") > -1 || addtlPartc) {
+        if ($(this).closest("td").children("input").attr("name").indexOf("additional_custom_post") > -1 || addtlPartc) {
             profileBottomCountAdd++
             urlPath = CRM.url('civicrm/event/manage/registration', { addProfileBottomAdd: 1, addProfileNumAdd: profileBottomCountAdd, snippet: 4 } ) ;
         } else {