Differential D21795 Diff 51951 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 250 Lines • ▼ Show 20 Lines | public function getHeraldFieldValue() { | ||||
$value = parent::getHeraldFieldValue(); | $value = parent::getHeraldFieldValue(); | ||||
if ($value) { | if ($value) { | ||||
return $value; | return $value; | ||||
} | } | ||||
return array(); | return array(); | ||||
} | } | ||||
protected function decodeValue($value) { | protected function decodeValue($value) { | ||||
if ($value === null) { | |||||
return array(); | |||||
} | |||||
$value = json_decode($value); | $value = json_decode($value); | ||||
if (!is_array($value)) { | if (!is_array($value)) { | ||||
$value = array(); | $value = array(); | ||||
} | } | ||||
return $value; | return $value; | ||||
} | } | ||||
protected function getHTTPParameterType() { | protected function getHTTPParameterType() { | ||||
return new AphrontPHIDListHTTPParameterType(); | return new AphrontPHIDListHTTPParameterType(); | ||||
} | } | ||||
} | } |