From 3a51ef65cc7d0cc4bcfd0ef66da0e4c23df09e3a Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Wed, 5 Aug 2015 18:48:18 +0530 Subject: [PATCH] CRM-16949 - Multi-record custom fields repeated when displayed for an individual --- templates/CRM/Contact/Page/View/CustomData.tpl | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/templates/CRM/Contact/Page/View/CustomData.tpl b/templates/CRM/Contact/Page/View/CustomData.tpl index 6cd6b78bb5..71d69300f0 100644 --- a/templates/CRM/Contact/Page/View/CustomData.tpl +++ b/templates/CRM/Contact/Page/View/CustomData.tpl @@ -25,6 +25,13 @@ *} {* template for custom data *} {assign var="customDataGroupName" value=$customDataGroup.name} +{strip} + {if $displayStyle neq 'tableOriented' and $action eq 16 or $action eq 4} {* Browse or View actions *} +
+ {include file="CRM/Custom/Page/CustomDataView.tpl"} +
+ {/if} +{/strip} {foreach from=$viewCustomData item=customGroupWrapper} {foreach from=$customGroupWrapper item=customGroup key=customGroupId} {assign var="customRegion" value='contact-custom-data-'|cat:$customGroup.name} @@ -59,14 +66,6 @@ {/literal} {else} - {strip} - {if $action eq 16 or $action eq 4} {* Browse or View actions *} -
- {include file="CRM/Custom/Page/CustomDataView.tpl"} -
- {/if} - {/strip} - {if $mainEditForm}