Differential D21457 Diff 51063 src/applications/transactions/editengine/PhabricatorEditEngineSubtype.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editengine/PhabricatorEditEngineSubtype.php
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | foreach ($config as $value) { | ||||
$child_subtypes = idx($children, 'subtypes'); | $child_subtypes = idx($children, 'subtypes'); | ||||
$child_forms = idx($children, 'forms'); | $child_forms = idx($children, 'forms'); | ||||
if ($child_subtypes && $child_forms) { | if ($child_subtypes && $child_forms) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'Subtype configuration is invalid: subtype with key "%s" '. | 'Subtype configuration is invalid: subtype with key "%s" '. | ||||
'specifies both child subtypes and child forms. Specify one '. | 'specifies both child subtypes and child forms. Specify one '. | ||||
'or the other, but not both.')); | 'or the other, but not both.', | ||||
$key)); | |||||
} | } | ||||
} | } | ||||
$fields = idx($value, 'fields'); | $fields = idx($value, 'fields'); | ||||
if ($fields) { | if ($fields) { | ||||
foreach ($fields as $field_key => $configuration) { | foreach ($fields as $field_key => $configuration) { | ||||
PhutilTypeSpec::checkMap( | PhutilTypeSpec::checkMap( | ||||
$configuration, | $configuration, | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |