CRM-17698 - Fix editing multi-valued custom fields
authorColeman Watts <coleman@civicrm.org>
Sat, 12 Dec 2015 22:17:42 +0000 (17:17 -0500)
committerColeman Watts <coleman@civicrm.org>
Sat, 12 Dec 2015 22:17:42 +0000 (17:17 -0500)
templates/CRM/Contact/Form/CustomData.tpl

index 38b5a7b3f293fc469e47e98b52ec348e5ee9cd9c..5652298f5f71b298bac93bdb648412662fab5869 100644 (file)
@@ -24,7 +24,7 @@
  +--------------------------------------------------------------------+
 *}
 {* this template is used for building tabbed custom data *}
-{if $postedInfo}
+{if $cdType || $postedInfo}
    {include file="CRM/Custom/Form/CustomData.tpl"}
    {if $multiRecordDisplay eq 'single'}
      <div class="crm-submit-buttons">{$form.buttons.html}</div>
@@ -50,6 +50,6 @@
     </script>
     {/literal}
   {/if}
+  {include file="CRM/Form/attachmentjs.tpl"}
 {/if}
 
-{include file="CRM/Form/attachmentjs.tpl"}