From: Eileen McNaughton Date: Wed, 10 Nov 2021 21:52:40 +0000 (+1300) Subject: Ensure context is always set X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=47b87e6c0b9f7eee69ba19467890717dbabcdc9f;p=civicrm-core.git Ensure context is always set --- diff --git a/CRM/Core/Page.php b/CRM/Core/Page.php index 7404125fc8..ecdf2450f1 100644 --- a/CRM/Core/Page.php +++ b/CRM/Core/Page.php @@ -118,6 +118,9 @@ class CRM_Core_Page { 'infoTitle', 'infoType', 'infoOptions', + // required for Summary.tpl (contact summary) but seems + // likely to be used more broadly to warrant inclusion here. + 'context', ]; /** diff --git a/templates/CRM/Contact/Page/View/Summary.tpl b/templates/CRM/Contact/Page/View/Summary.tpl index fd7b3bc32e..f6eb81a871 100644 --- a/templates/CRM/Contact/Page/View/Summary.tpl +++ b/templates/CRM/Contact/Page/View/Summary.tpl @@ -26,7 +26,7 @@ {if !empty($searchKey)} {assign var='urlParams' value=$urlParams|cat:"&key=$searchKey"} {/if} - {if !empty($context)} + {if $context} {assign var='urlParams' value=$urlParams|cat:"&context=$context"} {/if}