Differential D8600 Diff 20391 src/infrastructure/customfield/config/PhabricatorCustomFieldConfigOptionType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/config/PhabricatorCustomFieldConfigOptionType.php
Show All 37 Lines | public function renderControl( | ||||
} | } | ||||
// Get all of the fields (including disabled fields) by querying for them | // Get all of the fields (including disabled fields) by querying for them | ||||
// with a faux spec where no fields are disabled. | // with a faux spec where no fields are disabled. | ||||
$faux_spec = $field_spec; | $faux_spec = $field_spec; | ||||
foreach ($faux_spec as $key => $spec) { | foreach ($faux_spec as $key => $spec) { | ||||
unset($faux_spec[$key]['disabled']); | unset($faux_spec[$key]['disabled']); | ||||
} | } | ||||
// TODO: We might need to build a real object here eventually. | |||||
$faux_object = null; | |||||
$fields = PhabricatorCustomField::buildFieldList( | $fields = PhabricatorCustomField::buildFieldList( | ||||
$field_base_class, | $field_base_class, | ||||
$faux_spec); | $faux_spec, | ||||
$faux_object); | |||||
$list_id = celerity_generate_unique_node_id(); | $list_id = celerity_generate_unique_node_id(); | ||||
$input_id = celerity_generate_unique_node_id(); | $input_id = celerity_generate_unique_node_id(); | ||||
$list = id(new PHUIObjectItemListView()) | $list = id(new PHUIObjectItemListView()) | ||||
->setFlush(true) | ->setFlush(true) | ||||
->setID($list_id); | ->setID($list_id); | ||||
foreach ($fields as $key => $field) { | foreach ($fields as $key => $field) { | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |