diff --git a/src/applications/maniphest/controller/ManiphestController.php b/src/applications/maniphest/controller/ManiphestController.php --- a/src/applications/maniphest/controller/ManiphestController.php +++ b/src/applications/maniphest/controller/ManiphestController.php @@ -44,7 +44,8 @@ } 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 @@ $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 --- a/src/applications/maniphest/controller/ManiphestTaskEditController.php +++ b/src/applications/maniphest/controller/ManiphestTaskEditController.php @@ -547,6 +547,7 @@ ->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 --- a/src/applications/maniphest/view/ManiphestTaskListView.php +++ b/src/applications/maniphest/view/ManiphestTaskListView.php @@ -90,11 +90,15 @@ )); 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);