Differential D20287 Diff 48426 src/applications/project/controller/trigger/PhabricatorProjectTriggerEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/trigger/PhabricatorProjectTriggerEditController.php
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
$editor->applyTransactions($trigger, $xactions); | $editor->applyTransactions($trigger, $xactions); | ||||
$next_uri = $trigger->getURI(); | $next_uri = $trigger->getURI(); | ||||
if ($column) { | if ($column) { | ||||
$column_xactions = array(); | $column_xactions = array(); | ||||
// TODO: Modularize column transactions so we can change the column | $column_xactions[] = $column->getApplicationTransactionTemplate() | ||||
// trigger here. For now, this does nothing. | ->setTransactionType( | ||||
PhabricatorProjectColumnTriggerTransaction::TRANSACTIONTYPE) | |||||
->setNewValue($trigger->getPHID()); | |||||
$column_editor = $column->getApplicationTransactionEditor() | $column_editor = $column->getApplicationTransactionEditor() | ||||
->setActor($viewer) | ->setActor($viewer) | ||||
->setContentSourceFromRequest($request) | ->setContentSourceFromRequest($request) | ||||
->setContinueOnNoEffect(true); | ->setContinueOnNoEffect(true) | ||||
->setContinueOnMissingFields(true); | |||||
$column_editor->applyTransactions($column, $column_xactions); | $column_editor->applyTransactions($column, $column_xactions); | ||||
$next_uri = $column->getBoardURI(); | $next_uri = $column->getBoardURI(); | ||||
} | } | ||||
return id(new AphrontRedirectResponse())->setURI($next_uri); | return id(new AphrontRedirectResponse())->setURI($next_uri); | ||||
} catch (PhabricatorApplicationTransactionValidationException $ex) { | } catch (PhabricatorApplicationTransactionValidationException $ex) { | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |