Differential D17954 Diff 43187 src/applications/project/controller/PhabricatorProjectEditPictureController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/controller/PhabricatorProjectEditPictureController.php
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
if ($is_default) { | if ($is_default) { | ||||
$new_value = null; | $new_value = null; | ||||
} else { | } else { | ||||
$new_value = $xformed->getPHID(); | $new_value = $xformed->getPHID(); | ||||
} | } | ||||
$xactions = array(); | $xactions = array(); | ||||
$xactions[] = id(new PhabricatorProjectTransaction()) | $xactions[] = id(new PhabricatorProjectTransaction()) | ||||
->setTransactionType(PhabricatorProjectTransaction::TYPE_IMAGE) | ->setTransactionType( | ||||
PhabricatorProjectImageTransaction::TRANSACTIONTYPE) | |||||
->setNewValue($new_value); | ->setNewValue($new_value); | ||||
$editor = id(new PhabricatorProjectTransactionEditor()) | $editor = id(new PhabricatorProjectTransactionEditor()) | ||||
->setActor($viewer) | ->setActor($viewer) | ||||
->setContentSourceFromRequest($request) | ->setContentSourceFromRequest($request) | ||||
->setContinueOnMissingFields(true) | ->setContinueOnMissingFields(true) | ||||
->setContinueOnNoEffect(true); | ->setContinueOnNoEffect(true); | ||||
▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines |