Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fund/editor/FundInitiativeEditor.php
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
$total = $object->getTotalAsCurrency()->subtract($amount); | $total = $object->getTotalAsCurrency()->subtract($amount); | ||||
} else { | } else { | ||||
$total = $object->getTotalAsCurrency()->add($amount); | $total = $object->getTotalAsCurrency()->add($amount); | ||||
} | } | ||||
$object->setTotalAsCurrency($total); | $object->setTotalAsCurrency($total); | ||||
return; | return; | ||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS: | case PhabricatorTransactions::TYPE_SUBSCRIBERS: | ||||
case PhabricatorTransactions::TYPE_EDGE: | |||||
case PhabricatorTransactions::TYPE_VIEW_POLICY: | case PhabricatorTransactions::TYPE_VIEW_POLICY: | ||||
case PhabricatorTransactions::TYPE_EDIT_POLICY: | case PhabricatorTransactions::TYPE_EDIT_POLICY: | ||||
return; | return; | ||||
} | } | ||||
return parent::applyCustomInternalTransaction($object, $xaction); | return parent::applyCustomInternalTransaction($object, $xaction); | ||||
} | } | ||||
Show All 37 Lines | switch ($type) { | ||||
->setActor($this->requireActor()) | ->setActor($this->requireActor()) | ||||
->setContentSource($this->getContentSource()) | ->setContentSource($this->getContentSource()) | ||||
->setContinueOnMissingFields(true) | ->setContinueOnMissingFields(true) | ||||
->setContinueOnNoEffect(true); | ->setContinueOnNoEffect(true); | ||||
$editor->applyTransactions($backer, $subx); | $editor->applyTransactions($backer, $subx); | ||||
return; | return; | ||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS: | case PhabricatorTransactions::TYPE_SUBSCRIBERS: | ||||
case PhabricatorTransactions::TYPE_EDGE: | |||||
case PhabricatorTransactions::TYPE_VIEW_POLICY: | case PhabricatorTransactions::TYPE_VIEW_POLICY: | ||||
case PhabricatorTransactions::TYPE_EDIT_POLICY: | case PhabricatorTransactions::TYPE_EDIT_POLICY: | ||||
return; | return; | ||||
} | } | ||||
return parent::applyCustomExternalTransaction($object, $xaction); | return parent::applyCustomExternalTransaction($object, $xaction); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |