Differential D17959 Diff 43226 src/applications/project/controller/PhabricatorProjectMoveController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectMoveController.php
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | foreach ($try as $spec) { | ||||
if (!$task) { | if (!$task) { | ||||
continue; | continue; | ||||
} | } | ||||
list($pri, $sub) = ManiphestTransactionEditor::getAdjacentSubpriority( | list($pri, $sub) = ManiphestTransactionEditor::getAdjacentSubpriority( | ||||
$task, | $task, | ||||
$is_after); | $is_after); | ||||
// If we find a priority on the first try, don't keep going. | |||||
break; | |||||
} | } | ||||
$xactions = array(); | $xactions = array(); | ||||
if ($pri !== null) { | if ($pri !== null) { | ||||
$xactions[] = id(new ManiphestTransaction()) | $xactions[] = id(new ManiphestTransaction()) | ||||
->setTransactionType(ManiphestTaskPriorityTransaction::TRANSACTIONTYPE) | ->setTransactionType(ManiphestTaskPriorityTransaction::TRANSACTIONTYPE) | ||||
->setNewValue($pri); | ->setNewValue($pri); | ||||
$xactions[] = id(new ManiphestTransaction()) | $xactions[] = id(new ManiphestTransaction()) | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |