From 481461e6fbaa20af21eb4b84bc03fbc518b305ac Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 29 Jun 2021 17:46:09 -0400 Subject: [PATCH] Fix undefined tpl vars on custom field page --- templates/CRM/Custom/Page/Field.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Custom/Page/Field.tpl b/templates/CRM/Custom/Page/Field.tpl index 01b5cc6114..2ed880351a 100644 --- a/templates/CRM/Custom/Page/Field.tpl +++ b/templates/CRM/Custom/Page/Field.tpl @@ -42,9 +42,9 @@ {$row.data_type} {$row.html_type} {$row.weight} - {if $row.is_required eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} - {if $row.is_searchable eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} - {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} + {if !empty($row.is_required)} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} + {if !empty($row.is_searchable)} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} + {if !empty($row.is_active)} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} {$row.action|replace:'xx':$row.id} {/foreach} -- 2.25.1