From 119c08a865ebbf5868445d8d2784558aa2888549 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Mon, 9 Jun 2014 15:05:20 -0400 Subject: [PATCH] CRM-14826 preserve context with custom search results --- CRM/Contact/Selector/Custom.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Selector/Custom.php b/CRM/Contact/Selector/Custom.php index 95a773c0ba..36a12037cf 100644 --- a/CRM/Contact/Selector/Custom.php +++ b/CRM/Contact/Selector/Custom.php @@ -172,6 +172,7 @@ class CRM_Contact_Selector_Custom extends CRM_Contact_Selector { */ static function &links() { list($key) = func_get_args(); + $searchContext = "&context=custom"; $extraParams = ($key) ? "&key={$key}" : NULL; if (!(self::$_links)) { @@ -179,7 +180,7 @@ class CRM_Contact_Selector_Custom extends CRM_Contact_Selector { CRM_Core_Action::VIEW => array( 'name' => ts('View'), 'url' => 'civicrm/contact/view', - 'qs' => "reset=1&cid=%%id%%{$extraParams}", + 'qs' => "reset=1&cid=%%id%%{$extraParams}{$searchContext}", 'title' => ts('View Contact Details'), ), CRM_Core_Action::UPDATE => array( -- 2.25.1