Differential D14453 Diff 34953 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 809 Lines • ▼ Show 20 Lines | final public function applyTransactions( | ||||
| } | } | ||||
| foreach ($xactions as $xaction) { | foreach ($xactions as $xaction) { | ||||
| $this->adjustTransactionValues($object, $xaction); | $this->adjustTransactionValues($object, $xaction); | ||||
| } | } | ||||
| $xactions = $this->filterTransactions($object, $xactions); | $xactions = $this->filterTransactions($object, $xactions); | ||||
| if (!$xactions) { | |||||
| if ($read_locking) { | |||||
| $object->endReadLocking(); | |||||
| $read_locking = false; | |||||
| } | |||||
| if ($transaction_open) { | |||||
| $object->killTransaction(); | |||||
| $transaction_open = false; | |||||
| } | |||||
| return array(); | |||||
| } | |||||
| // 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,487 Lines • Show Last 20 Lines | |||||