aboutsummaryrefslogtreecommitdiff
path: root/devel/phabricator/files/patch-src_applications_search_engine_PhabricatorProfileMenuEngine.php
blob: cc794c9729a1df6bf0474c47bec0a9b85be94130 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- src/applications/search/engine/PhabricatorProfileMenuEngine.php.orig	2022-01-26 14:23:11 UTC
+++ src/applications/search/engine/PhabricatorProfileMenuEngine.php
@@ -99,7 +99,7 @@ abstract class PhabricatorProfileMenuEngine extends Ph
     return $this->editMode;
   }
 
-  public function buildResponse() {
+  public function buildResponse($ignore_item_id = false) {
     $controller = $this->getController();
 
     $viewer = $controller->getViewer();
@@ -130,6 +130,10 @@ abstract class PhabricatorProfileMenuEngine extends Ph
       $item_id = $request->getURIData('id');
     }
 
+    if ($ignore_item_id) {
+      $item_id = "";
+    }
+
     $view_list = $this->newProfileMenuItemViewList();
 
     if ($is_view) {