From a5359ee71d092a34e5443a9aa9f836c24865bd33 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 8 Jul 2021 16:34:47 -0400 Subject: [PATCH] Fix undefined tpl variables --- templates/CRM/Admin/Form/Setting/Debugging.tpl | 14 +++++++------- templates/CRM/Contact/Form/Task.tpl | 6 +++--- templates/CRM/Contact/Form/Task/EmailCommon.tpl | 2 +- templates/CRM/Form/attachment.tpl | 8 ++++---- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/templates/CRM/Admin/Form/Setting/Debugging.tpl b/templates/CRM/Admin/Form/Setting/Debugging.tpl index 5c785c8c8b8f..84559cd59768 100644 --- a/templates/CRM/Admin/Form/Setting/Debugging.tpl +++ b/templates/CRM/Admin/Form/Setting/Debugging.tpl @@ -11,15 +11,15 @@ {ts}In addition to the settings on this screen, there are a number of settings you can add to your sites's settings file (civicrm.settings.php) to provide additional debugging information.{/ts} {docURL page="dev/tools/debugging/#changing-file-based-settings"}
-
{include file="CRM/common/formButtons.tpl" location="top"}
- - {if $form.userFrameworkLogging} +
{include file="CRM/common/formButtons.tpl" location="top"}
+
+ {if !empty($form.userFrameworkLogging)} - {/if} + {/if} -
{$form.userFrameworkLogging.label} {$form.userFrameworkLogging.html}
{ts}Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs{/ts} {help id='userFrameworkLogging'}
{$form.debug_enabled.label} {$form.debug_enabled.html}
@@ -45,7 +45,7 @@
{$form.assetCache.html}
{ts}Store computed JS/CSS content in cache files? (Note: In "Auto" mode, the "Debug" setting will determine whether to activate the cache.){/ts}
-
{include file="CRM/common/formButtons.tpl" location="bottom"}
-
+ +
{include file="CRM/common/formButtons.tpl" location="bottom"}
+
diff --git a/templates/CRM/Contact/Form/Task.tpl b/templates/CRM/Contact/Form/Task.tpl index b1f065d9a7f9..63b55a5170ce 100644 --- a/templates/CRM/Contact/Form/Task.tpl +++ b/templates/CRM/Contact/Form/Task.tpl @@ -9,7 +9,7 @@ *} {ts 1=$totalSelectedContacts}Number of selected contacts: %1{/ts} -{if $searchtype eq 'ts_sel'} +{if !empty($searchtype) && $searchtype eq 'ts_sel'}
@@ -32,7 +32,7 @@ {ts}View Selected Contacts{/ts} {/if} -{if $searchtype eq 'ts_sel'} +{if !empty($searchtype) && $searchtype eq 'ts_sel'} {literal}