Differential D12680 Diff 30510 src/applications/maniphest/controller/ManiphestTransactionPreviewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/controller/ManiphestTransactionPreviewController.php
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | switch ($action) { | ||||
foreach ($value as $cc_phid) { | foreach ($value as $cc_phid) { | ||||
$phids[] = $cc_phid; | $phids[] = $cc_phid; | ||||
} | } | ||||
$transaction->setOldValue(array()); | $transaction->setOldValue(array()); | ||||
$transaction->setNewValue($phids); | $transaction->setNewValue($phids); | ||||
break; | break; | ||||
case PhabricatorTransactions::TYPE_EDGE: | case PhabricatorTransactions::TYPE_EDGE: | ||||
if ($value) { | if ($value) { | ||||
$value = json_decode($value); | $value = phutil_json_decode($value); | ||||
} | } | ||||
if (!$value) { | if (!$value) { | ||||
$value = array(); | $value = array(); | ||||
} | } | ||||
$phids = array(); | $phids = array(); | ||||
$value = array_fuse($value); | $value = array_fuse($value); | ||||
foreach ($value as $project_phid) { | foreach ($value as $project_phid) { | ||||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |