Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/editor/ManiphestEditEngine.php
| Show First 20 Lines • Show All 459 Lines • ▼ Show 20 Lines | private function getColumnMap(ManiphestTask $task) { | ||||
| } | } | ||||
| $map = isort($map, 'label'); | $map = isort($map, 'label'); | ||||
| $map = array_values($map); | $map = array_values($map); | ||||
| return $map; | return $map; | ||||
| } | } | ||||
| protected function willConfigureFields($object, array $fields) { | |||||
| $subtype = $this->getEditEngineConfiguration()->getSubType(); | |||||
| if ($subtype) { | |||||
| foreach ($fields as $key => $field) { | |||||
| if ($field instanceof PhabricatorCustomFieldEditField) { | |||||
| $subtypes = $field->getCustomField()->getFieldConfigValue('subtypes'); | |||||
| if ($subtypes && !in_array($subtype, $subtypes)) { | |||||
| unset($fields[$key]); | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| return $fields; | |||||
| } | |||||
| } | } | ||||