From 72b60e71d015cb075462844ee74aa3dad679b56e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 7 Jan 2016 12:38:34 -0500 Subject: [PATCH] Add breadcrumb for returning to search results --- CRM/Contact/Page/View.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CRM/Contact/Page/View.php b/CRM/Contact/Page/View.php index 499ddbcf17..44d7a0a2a6 100644 --- a/CRM/Contact/Page/View.php +++ b/CRM/Contact/Page/View.php @@ -135,6 +135,7 @@ class CRM_Contact_Page_View extends CRM_Core_Page { $found = TRUE; } + $context = CRM_Utils_Array::value('context', $_GET); if (!$found) { // seems like we did not find any contacts // maybe due to bug CRM-9096 @@ -143,6 +144,15 @@ class CRM_Contact_Page_View extends CRM_Core_Page { $navContacts['nextPrevError'] = 1; } } + elseif ($context) { + $this->assign('context', $context); + CRM_Utils_System::appendBreadCrumb(array( + array( + 'title' => ts('Search Results'), + 'url' => CRM_Utils_System::url("civicrm/contact/search/$context", array('qfKey' => $qfKey)), + ), + )); + } } $this->assign($navContacts); -- 2.25.1