Differential D12680 Diff 30510 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldPHIDs.php
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | public function getApplicationTransactionTitle( | ||||
PhabricatorApplicationTransaction $xaction) { | PhabricatorApplicationTransaction $xaction) { | ||||
$author_phid = $xaction->getAuthorPHID(); | $author_phid = $xaction->getAuthorPHID(); | ||||
$old = json_decode($xaction->getOldValue()); | $old = json_decode($xaction->getOldValue()); | ||||
if (!is_array($old)) { | if (!is_array($old)) { | ||||
$old = array(); | $old = array(); | ||||
} | } | ||||
$new = json_decode($xaction->getNewValue()); | $new = phutil_json_decode($xaction->getNewValue()); | ||||
if (!is_array($new)) { | if (!is_array($new)) { | ||||
$new = array(); | $new = array(); | ||||
} | } | ||||
$add = array_diff($new, $old); | $add = array_diff($new, $old); | ||||
$rem = array_diff($old, $new); | $rem = array_diff($old, $new); | ||||
if ($add && !$rem) { | if ($add && !$rem) { | ||||
Show All 40 Lines |