Differential D14653 Diff 35450 src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
| Show First 20 Lines • Show All 805 Lines • ▼ Show 20 Lines | final public function applyTransactions( | ||||
| if ($this->shouldApplyInitialEffects($object, $xactions)) { | if ($this->shouldApplyInitialEffects($object, $xactions)) { | ||||
| $this->applyInitialEffects($object, $xactions); | $this->applyInitialEffects($object, $xactions); | ||||
| } | } | ||||
| foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
| $this->adjustTransactionValues($object, $xaction); | $this->adjustTransactionValues($object, $xaction); | ||||
| } | } | ||||
| try { | |||||
| $xactions = $this->filterTransactions($object, $xactions); | $xactions = $this->filterTransactions($object, $xactions); | ||||
| } catch (Exception $ex) { | |||||
| if ($read_locking) { | |||||
| $object->endReadLocking(); | |||||
| } | |||||
| if ($transaction_open) { | |||||
| $object->killTransaction(); | |||||
| } | |||||
| throw $ex; | |||||
| } | |||||
| // Now that we've merged, filtered, and combined transactions, check for | // Now that we've merged, filtered, and combined transactions, check for | ||||
| // required capabilities. | // required capabilities. | ||||
| foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
| $this->requireCapabilities($object, $xaction); | $this->requireCapabilities($object, $xaction); | ||||
| } | } | ||||
| $xactions = $this->sortTransactions($xactions); | $xactions = $this->sortTransactions($xactions); | ||||
| ▲ Show 20 Lines • Show All 2,492 Lines • Show Last 20 Lines | |||||