From: Coleman Watts Date: Sat, 6 Mar 2021 16:36:38 +0000 (-0500) Subject: SearchKit - Add breadcrumb to saved searches from search display view X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f2a218cd1dd4380f7cfd049f3cc10606fa4d9492;p=civicrm-core.git SearchKit - Add breadcrumb to saved searches from search display view --- diff --git a/ext/search/CRM/Search/Page/Search.php b/ext/search/CRM/Search/Page/Search.php index 053a8eeacb..ffd4ce40cd 100644 --- a/ext/search/CRM/Search/Page/Search.php +++ b/ext/search/CRM/Search/Page/Search.php @@ -9,6 +9,8 @@ +--------------------------------------------------------------------+ */ +use CRM_Search_ExtensionUtil as E; + /** * Angular base page for search admin */ @@ -24,6 +26,10 @@ class CRM_Search_Page_Search extends CRM_Core_Page { $loader->useApp(); $loader->load(); + if (CRM_Core_Permission::check('administer CiviCRM')) { + CRM_Utils_System::appendBreadCrumb([['title' => E::ts('Search Kit'), 'url' => CRM_Utils_System::url('civicrm/admin/search')]]); + } + parent::run(); }