Differential D16540 Diff 39809 src/applications/conpherence/controller/ConpherenceUpdateController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/controller/ConpherenceUpdateController.php
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | if ($request->isFormPost() || ($action == ConpherenceUpdateActions::LOAD)) { | ||||
0, | 0, | ||||
ConpherenceImageData::CROP_WIDTH, | ConpherenceImageData::CROP_WIDTH, | ||||
ConpherenceImageData::CROP_HEIGHT); | ConpherenceImageData::CROP_HEIGHT); | ||||
$xactions[] = id(new ConpherenceTransaction()) | $xactions[] = id(new ConpherenceTransaction()) | ||||
->setTransactionType( | ->setTransactionType( | ||||
ConpherenceTransaction::TYPE_PICTURE_CROP) | ConpherenceTransaction::TYPE_PICTURE_CROP) | ||||
->setNewValue($crop_file->getPHID()); | ->setNewValue($crop_file->getPHID()); | ||||
} | } | ||||
$response_mode = 'redirect'; | |||||
} | } | ||||
// all other metadata updates are continue requests | // all other metadata updates are continue requests | ||||
if (!$request->isContinueRequest()) { | if (!$request->isContinueRequest()) { | ||||
break; | break; | ||||
} | } | ||||
if ($top !== null || $left !== null) { | if ($top !== null || $left !== null) { | ||||
Show All 20 Lines | if ($request->isFormPost() || ($action == ConpherenceUpdateActions::LOAD)) { | ||||
->setTransactionType(PhabricatorTransactions::TYPE_VIEW_POLICY) | ->setTransactionType(PhabricatorTransactions::TYPE_VIEW_POLICY) | ||||
->setNewValue($request->getStr('viewPolicy')); | ->setNewValue($request->getStr('viewPolicy')); | ||||
$xactions[] = id(new ConpherenceTransaction()) | $xactions[] = id(new ConpherenceTransaction()) | ||||
->setTransactionType(PhabricatorTransactions::TYPE_EDIT_POLICY) | ->setTransactionType(PhabricatorTransactions::TYPE_EDIT_POLICY) | ||||
->setNewValue($request->getStr('editPolicy')); | ->setNewValue($request->getStr('editPolicy')); | ||||
$xactions[] = id(new ConpherenceTransaction()) | $xactions[] = id(new ConpherenceTransaction()) | ||||
->setTransactionType(PhabricatorTransactions::TYPE_JOIN_POLICY) | ->setTransactionType(PhabricatorTransactions::TYPE_JOIN_POLICY) | ||||
->setNewValue($request->getStr('joinPolicy')); | ->setNewValue($request->getStr('joinPolicy')); | ||||
if (!$request->getExists('force_ajax')) { | |||||
$response_mode = 'redirect'; | $response_mode = 'redirect'; | ||||
} | |||||
break; | break; | ||||
case ConpherenceUpdateActions::LOAD: | case ConpherenceUpdateActions::LOAD: | ||||
$updated = false; | $updated = false; | ||||
$response_mode = 'ajax'; | $response_mode = 'ajax'; | ||||
break; | break; | ||||
default: | default: | ||||
throw new Exception(pht('Unknown action: %s', $action)); | throw new Exception(pht('Unknown action: %s', $action)); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 394 Lines • Show Last 20 Lines |