Differential D8287 Diff 19728 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 732 Lines • ▼ Show 20 Lines | foreach ($xactions as $xaction) { | ||||
| if ($xaction->getOldValue() !== null) { | if ($xaction->getOldValue() !== null) { | ||||
| throw new Exception( | throw new Exception( | ||||
| "You can not apply transactions which already have oldValue!"); | "You can not apply transactions which already have oldValue!"); | ||||
| } | } | ||||
| } | } | ||||
| $type = $xaction->getTransactionType(); | $type = $xaction->getTransactionType(); | ||||
| if (empty($types[$type])) { | if (empty($types[$type])) { | ||||
| throw new Exception("Transaction has unknown type '{$type}'."); | throw new Exception( | ||||
| pht( | |||||
| 'Transaction has type "%s", but that transaction type is not '. | |||||
| 'supported by this editor (%s).', | |||||
| $type, | |||||
| get_class($this))); | |||||
| } | } | ||||
| } | } | ||||
| // The actor must have permission to view and edit the object. | // The actor must have permission to view and edit the object. | ||||
| $actor = $this->requireActor(); | $actor = $this->requireActor(); | ||||
| PhabricatorPolicyFilter::requireCapability( | PhabricatorPolicyFilter::requireCapability( | ||||
| ▲ Show 20 Lines • Show All 1,012 Lines • Show Last 20 Lines | |||||