#4360 #4384 fixing multiple regressions with legacy path civicrm/contact/search
authorSamuel Vanhove <samuel@symbiotic.coop>
Mon, 26 Jun 2023 16:28:40 +0000 (12:28 -0400)
committerSamuel Vanhove <samuel@symbiotic.coop>
Mon, 26 Jun 2023 16:28:40 +0000 (12:28 -0400)
ext/civicrm_admin_ui/ang/afsearchContactSearch.aff.json
ext/civicrm_admin_ui/managed/SavedSearch_Contact_Search.mgd.php

index 0afcb460e533f923db0d5ee531517f75d904c538..9e3865e50a8b783d6f13c8882f6526b254626400 100644 (file)
@@ -2,7 +2,7 @@
     "type": "search",
     "title": "Find Contacts",
     "icon": "fa-list-alt",
-    "server_route": "civicrm/contact/search",
+    "server_route": "civicrm/adminui/contact/search",
     "permission": "access CiviCRM",
     "navigation": null,
     "requires": [],
index f6884f933fc873ed3d1f5e9a9541ab0c8ae7da90..a297cf824e072f23b1258672098186fa8e295f7f 100644 (file)
@@ -3,6 +3,32 @@
 use CRM_CivicrmAdminUi_ExtensionUtil as E;
 
 return [
+  // using a temporary alternate path to avoid breaking legacy path
+  [
+    'name' => 'Navigation_Find_Contacts',
+    'entity' => 'Navigation',
+    'cleanup' => 'unused',
+    'update' => 'unmodified',
+    'params' => [
+      'version' => 4,
+      'values' => [
+        'domain_id' => 'current_domain',
+        'label' => E::ts('Find Contacts'),
+        'name' => 'Find Contacts',
+        'url' => 'civicrm/adminui/contact/search',
+        'icon' => NULL,
+        'permission' => NULL,
+        'permission_operator' => '',
+        'parent_id.name' => 'Search',
+        'is_active' => TRUE,
+        'has_separator' => NULL,
+        'weight' => 1,
+      ],
+      'match' => [
+        'name',
+      ],
+    ],
+  ],
   [
     'name' => 'SavedSearch_Find_Contacts',
     'entity' => 'SavedSearch',