Differential D20306 Diff 48504 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 105 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
| $header_xactions = $ordering->getColumnTransactions( | $header_xactions = $ordering->getColumnTransactions( | ||||
| $object, | $object, | ||||
| $edit_header); | $edit_header); | ||||
| foreach ($header_xactions as $header_xaction) { | foreach ($header_xactions as $header_xaction) { | ||||
| $xactions[] = $header_xaction; | $xactions[] = $header_xaction; | ||||
| } | } | ||||
| $sounds = array(); | |||||
| if ($column->canHaveTrigger()) { | if ($column->canHaveTrigger()) { | ||||
| $trigger = $column->getTrigger(); | $trigger = $column->getTrigger(); | ||||
| if ($trigger) { | if ($trigger) { | ||||
| $trigger_xactions = $trigger->newDropTransactions( | $trigger_xactions = $trigger->newDropTransactions( | ||||
| $viewer, | $viewer, | ||||
| $column, | $column, | ||||
| $object); | $object); | ||||
| foreach ($trigger_xactions as $trigger_xaction) { | foreach ($trigger_xactions as $trigger_xaction) { | ||||
| $xactions[] = $trigger_xaction; | $xactions[] = $trigger_xaction; | ||||
| } | } | ||||
| foreach ($trigger->getSoundEffects() as $effect) { | |||||
| $sounds[] = $effect; | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| $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); | ->setCancelURI($cancel_uri); | ||||
| $editor->applyTransactions($object, $xactions); | $editor->applyTransactions($object, $xactions); | ||||
| return $this->newCardResponse($board_phid, $object_phid, $ordering); | return $this->newCardResponse( | ||||
| $board_phid, | |||||
| $object_phid, | |||||
| $ordering, | |||||
| $sounds); | |||||
| } | } | ||||
| } | } | ||||