diff --git a/src/applications/maniphest/controller/ManiphestController.php b/src/applications/maniphest/controller/ManiphestController.php index 76ff038f67..ea79e31bc4 100644 --- a/src/applications/maniphest/controller/ManiphestController.php +++ b/src/applications/maniphest/controller/ManiphestController.php @@ -44,7 +44,8 @@ abstract class ManiphestController extends PhabricatorController { } protected function renderSingleTask(ManiphestTask $task) { - $user = $this->getRequest()->getUser(); + $request = $this->getRequest(); + $user = $request->getUser(); $phids = $task->getProjectPHIDs(); if ($task->getOwnerPHID()) { @@ -58,7 +59,7 @@ abstract class ManiphestController extends PhabricatorController { $view = id(new ManiphestTaskListView()) ->setUser($user) - ->setShowSubpriorityControls(true) + ->setShowSubpriorityControls(!$request->getStr('ungrippable')) ->setShowBatchControls(true) ->setHandles($handles) ->setTasks(array($task)); diff --git a/src/applications/maniphest/controller/ManiphestTaskEditController.php b/src/applications/maniphest/controller/ManiphestTaskEditController.php index 6438c47d93..b3d59b1ee8 100644 --- a/src/applications/maniphest/controller/ManiphestTaskEditController.php +++ b/src/applications/maniphest/controller/ManiphestTaskEditController.php @@ -547,6 +547,7 @@ final class ManiphestTaskEditController extends ManiphestController { ->addHiddenInput('template', $template_id) ->addHiddenInput('responseType', $response_type) ->addHiddenInput('order', $order) + ->addHiddenInput('ungrippable', $request->getStr('ungrippable')) ->addHiddenInput('columnPHID', $request->getStr('columnPHID')); if ($parent_task) { diff --git a/src/applications/maniphest/view/ManiphestTaskListView.php b/src/applications/maniphest/view/ManiphestTaskListView.php index 896f2bfa02..ddf51d618d 100644 --- a/src/applications/maniphest/view/ManiphestTaskListView.php +++ b/src/applications/maniphest/view/ManiphestTaskListView.php @@ -90,11 +90,15 @@ final class ManiphestTaskListView extends ManiphestView { )); if ($this->showBatchControls) { + $href = new PhutilURI('/maniphest/task/edit/'.$task->getID().'/'); + if (!$this->showSubpriorityControls) { + $href->setQueryParam('ungrippable', 'true'); + } $item->addAction( id(new PHUIListItemView()) ->setIcon('fa-pencil') ->addSigil('maniphest-edit-task') - ->setHref('/maniphest/task/edit/'.$task->getID().'/')); + ->setHref($href)); } $list->addItem($item);