From 181606fa4b94c2f2b720ef32d8fb1fdd9475e8c5 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Wed, 18 Mar 2020 15:07:26 -0400 Subject: [PATCH] Fix CustomDataView.tpl plain empty memo field. --- templates/CRM/Custom/Page/CustomDataView.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Custom/Page/CustomDataView.tpl b/templates/CRM/Custom/Page/CustomDataView.tpl index b9ba66ce0e..3cddab39b4 100644 --- a/templates/CRM/Custom/Page/CustomDataView.tpl +++ b/templates/CRM/Custom/Page/CustomDataView.tpl @@ -130,7 +130,7 @@ {/if} {if $element.field_data_type == 'Memo'} - {$element.field_value|nl2br} + {if $element.field_value}{$element.field_value|nl2br}{else}
{/if} {else} {if $element.field_value}{$element.field_value} {else}
{/if} {/if} -- 2.25.1