Differential D16196 Diff 38966 src/applications/maniphest/controller/ManiphestTaskDetailController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestTaskDetailController.php
Show First 20 Lines • Show All 195 Lines • ▼ Show 20 Lines | $task_submenu[] = id(new PhabricatorActionView()) | ||||
->setWorkflow(!$can_create); | ->setWorkflow(!$can_create); | ||||
$relationship_list = PhabricatorObjectRelationshipList::newForObject( | $relationship_list = PhabricatorObjectRelationshipList::newForObject( | ||||
$viewer, | $viewer, | ||||
$task); | $task); | ||||
$parent_key = ManiphestTaskHasParentRelationship::RELATIONSHIPKEY; | $parent_key = ManiphestTaskHasParentRelationship::RELATIONSHIPKEY; | ||||
$subtask_key = ManiphestTaskHasSubtaskRelationship::RELATIONSHIPKEY; | $subtask_key = ManiphestTaskHasSubtaskRelationship::RELATIONSHIPKEY; | ||||
$merge_key = ManiphestTaskMergeInRelationship::RELATIONSHIPKEY; | |||||
$close_key = ManiphestTaskCloseAsDuplicateRelationship::RELATIONSHIPKEY; | |||||
$task_submenu[] = $relationship_list->getRelationship($parent_key) | $task_submenu[] = $relationship_list->getRelationship($parent_key) | ||||
->newAction($task); | ->newAction($task); | ||||
$task_submenu[] = $relationship_list->getRelationship($subtask_key) | $task_submenu[] = $relationship_list->getRelationship($subtask_key) | ||||
->newAction($task); | ->newAction($task); | ||||
$task_submenu[] = id(new PhabricatorActionView()) | $task_submenu[] = $relationship_list->getRelationship($merge_key) | ||||
->setName(pht('Merge Duplicates In')) | ->newAction($task); | ||||
->setHref("/search/attach/{$phid}/TASK/merge/") | |||||
->setIcon('fa-compress') | $task_submenu[] = $relationship_list->getRelationship($close_key) | ||||
->setDisabled(!$can_edit) | ->newAction($task); | ||||
->setWorkflow(true); | |||||
$curtain->addAction( | $curtain->addAction( | ||||
id(new PhabricatorActionView()) | id(new PhabricatorActionView()) | ||||
->setName(pht('Edit Related Tasks...')) | ->setName(pht('Edit Related Tasks...')) | ||||
->setIcon('fa-anchor') | ->setIcon('fa-anchor') | ||||
->setSubmenu($task_submenu)); | ->setSubmenu($task_submenu)); | ||||
$relationship_submenu = $relationship_list->newActionMenu(); | $relationship_submenu = $relationship_list->newActionMenu(); | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |