Remove 'browse' link that shouldn't be there
authorcolemanw <coleman@civicrm.org>
Fri, 21 Jul 2023 17:33:03 +0000 (13:33 -0400)
committercolemanw <coleman@civicrm.org>
Fri, 21 Jul 2023 17:33:03 +0000 (13:33 -0400)
CRM/Core/Page/Basic.php

index 366f16e332cb4659d17e567d2aa5fa45df862378..93a62940748756828803273061db6de5ed1bc511 100644 (file)
@@ -39,7 +39,7 @@ abstract class CRM_Core_Page_Basic extends CRM_Core_Page {
       Civi::$statics[$baoName]['actionLinks'] = [];
       $title = $baoName::getEntityTitle();
       $paths = $baoName::getEntityPaths();
-      unset($paths['add']);
+      unset($paths['add'], $paths['browse']);
       foreach ($paths as $action => $path) {
         $actionKey = CRM_Core_Action::map($action);
         if ($actionKey) {