Differential D25238 Diff 823 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 385 Lines • ▼ Show 20 Lines | private function adjustTransactionValues( | ||||
if ($xaction->shouldGenerateOldValue()) { | if ($xaction->shouldGenerateOldValue()) { | ||||
$old = $this->getTransactionOldValue($object, $xaction); | $old = $this->getTransactionOldValue($object, $xaction); | ||||
$xaction->setOldValue($old); | $xaction->setOldValue($old); | ||||
} | } | ||||
$new = $this->getTransactionNewValue($object, $xaction); | $new = $this->getTransactionNewValue($object, $xaction); | ||||
$xaction->setNewValue($new); | $xaction->setNewValue($new); | ||||
// Apply an optional transformation to convert "external" tranaction | // Apply an optional transformation to convert "external" transaction | ||||
// values (provided by APIs) into "internal" values. | // values (provided by APIs) into "internal" values. | ||||
$old = $xaction->getOldValue(); | $old = $xaction->getOldValue(); | ||||
$new = $xaction->getNewValue(); | $new = $xaction->getNewValue(); | ||||
$type = $xaction->getTransactionType(); | $type = $xaction->getTransactionType(); | ||||
$xtype = $this->getModularTransactionType($object, $type); | $xtype = $this->getModularTransactionType($object, $type); | ||||
if ($xtype) { | if ($xtype) { | ||||
▲ Show 20 Lines • Show All 5,343 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0