From: Coleman Watts Date: Thu, 8 Jul 2021 20:34:47 +0000 (-0400) Subject: Fix undefined tpl variables X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a5359ee71d092a34e5443a9aa9f836c24865bd33;p=civicrm-core.git Fix undefined tpl variables --- diff --git a/templates/CRM/Admin/Form/Setting/Debugging.tpl b/templates/CRM/Admin/Form/Setting/Debugging.tpl index 5c785c8c8b..84559cd597 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 b1f065d9a7..63b55a5170 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}