From 47b87e6c0b9f7eee69ba19467890717dbabcdc9f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 11 Nov 2021 10:52:40 +1300 Subject: [PATCH] Ensure context is always set --- CRM/Core/Page.php | 3 +++ templates/CRM/Contact/Page/View/Summary.tpl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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} -- 2.25.1