From: Coleman Watts Date: Thu, 7 Jan 2016 17:38:34 +0000 (-0500) Subject: Add breadcrumb for returning to search results X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=72b60e71d015cb075462844ee74aa3dad679b56e;p=civicrm-core.git Add breadcrumb for returning to search results --- 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);