Differential D20282 Diff 48421 src/applications/project/controller/PhabricatorProjectBoardViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectBoardViewController.php
Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Lines | if (strlen($move_id)) { | ||||
$move_project_phid = $project->getPHID(); | $move_project_phid = $project->getPHID(); | ||||
$move_column_phid = null; | $move_column_phid = null; | ||||
$move_project = null; | $move_project = null; | ||||
$move_column = null; | $move_column = null; | ||||
$columns = null; | $columns = null; | ||||
$errors = array(); | $errors = array(); | ||||
if ($request->isFormPost()) { | if ($request->isFormOrHiSecPost()) { | ||||
$move_project_phid = head($request->getArr('moveProjectPHID')); | $move_project_phid = head($request->getArr('moveProjectPHID')); | ||||
if (!$move_project_phid) { | if (!$move_project_phid) { | ||||
$move_project_phid = $request->getStr('moveProjectPHID'); | $move_project_phid = $request->getStr('moveProjectPHID'); | ||||
} | } | ||||
if (!$move_project_phid) { | if (!$move_project_phid) { | ||||
if ($request->getBool('hasProject')) { | if ($request->getBool('hasProject')) { | ||||
$errors[] = pht('Choose a project to move tasks to.'); | $errors[] = pht('Choose a project to move tasks to.'); | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | if (strlen($move_id)) { | ||||
'columnPHID' => $move_column->getPHID(), | 'columnPHID' => $move_column->getPHID(), | ||||
), | ), | ||||
)); | )); | ||||
$editor = id(new ManiphestTransactionEditor()) | $editor = id(new ManiphestTransactionEditor()) | ||||
->setActor($viewer) | ->setActor($viewer) | ||||
->setContinueOnMissingFields(true) | ->setContinueOnMissingFields(true) | ||||
->setContinueOnNoEffect(true) | ->setContinueOnNoEffect(true) | ||||
->setContentSourceFromRequest($request); | ->setContentSourceFromRequest($request) | ||||
->setCancelURI($cancel_uri); | |||||
$editor->applyTransactions($move_task, $xactions); | $editor->applyTransactions($move_task, $xactions); | ||||
} | } | ||||
return id(new AphrontRedirectResponse()) | return id(new AphrontRedirectResponse()) | ||||
->setURI($cancel_uri); | ->setURI($cancel_uri); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 974 Lines • Show Last 20 Lines |