Additional profile select box fix in Manage Event Page
authorJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Fri, 1 Aug 2014 14:38:32 +0000 (20:08 +0530)
committerJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Fri, 1 Aug 2014 14:38:32 +0000 (20:08 +0530)
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 {