SearchKit - Remove irrelevant link from default display
authorcolemanw <coleman@civicrm.org>
Wed, 12 Jul 2023 17:51:21 +0000 (13:51 -0400)
committercolemanw <coleman@civicrm.org>
Wed, 12 Jul 2023 17:51:21 +0000 (13:51 -0400)
ext/search_kit/Civi/Search/Display.php

index 2bb5393d33f35004ec47a41b4a94b4f3f0f53c72..4c2ba295a5c40dcc9b73ab2104ae12aa357a463d 100644 (file)
@@ -69,7 +69,7 @@ class Display {
     }
     // If addLabel is false the placeholder needs to be passed through to javascript
     $label = $addLabel ?: '%1';
-    unset($paths['add']);
+    unset($paths['add'], $paths['browse']);
     foreach (array_keys($paths) as $actionName) {
       $actionKey = \CRM_Core_Action::mapItem($actionName);
       $link = [