Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jan 2022 14:31:58 GMT
From:      Michael Gmelin <grembo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 09746fa95ea6 - main - devel/phabricator: Fix default workboard on projects
Message-ID:  <202201261431.20QEVwUP022752@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=09746fa95ea6e46955f836132f7c1b126c96cdc6

commit 09746fa95ea6e46955f836132f7c1b126c96cdc6
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2022-01-26 14:30:13 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2022-01-26 14:31:38 +0000

    devel/phabricator: Fix default workboard on projects
    
    This adds a patch to unbreak having workboards as the default
    view on projects.
---
 devel/phabricator/Makefile                         |  2 +-
 ...controller_PhabricatorProjectViewController.php | 11 +++++++++++
 ..._search_engine_PhabricatorProfileMenuEngine.php | 22 ++++++++++++++++++++++
 3 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/devel/phabricator/Makefile b/devel/phabricator/Makefile
index 5ef16edf3e9a..5b3b51d62182 100644
--- a/devel/phabricator/Makefile
+++ b/devel/phabricator/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	phabricator
 PORTVERSION=	20201119
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
 
diff --git a/devel/phabricator/files/patch-src_applications_project_controller_PhabricatorProjectViewController.php b/devel/phabricator/files/patch-src_applications_project_controller_PhabricatorProjectViewController.php
new file mode 100644
index 000000000000..72d4ec69e293
--- /dev/null
+++ b/devel/phabricator/files/patch-src_applications_project_controller_PhabricatorProjectViewController.php
@@ -0,0 +1,11 @@
+--- src/applications/project/controller/PhabricatorProjectViewController.php.orig	2022-01-26 14:24:00 UTC
++++ src/applications/project/controller/PhabricatorProjectViewController.php
+@@ -39,7 +39,7 @@ final class PhabricatorProjectViewController
+         $controller_object = new PhabricatorProjectManageController();
+         break;
+       default:
+-        return $engine->buildResponse();
++        return $engine->buildResponse(true);
+     }
+ 
+     return $this->delegateToController($controller_object);
diff --git a/devel/phabricator/files/patch-src_applications_search_engine_PhabricatorProfileMenuEngine.php b/devel/phabricator/files/patch-src_applications_search_engine_PhabricatorProfileMenuEngine.php
new file mode 100644
index 000000000000..cc794c9729a1
--- /dev/null
+++ b/devel/phabricator/files/patch-src_applications_search_engine_PhabricatorProfileMenuEngine.php
@@ -0,0 +1,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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201261431.20QEVwUP022752>