mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Only iterate through dataFields() in FormSchema
Temporary measure until we implement nested fields
This commit is contained in:
parent
8ae2894890
commit
adbcddee80
@ -41,10 +41,9 @@ class FormSchema {
|
||||
$schema['actions'][] = $action->getSchemaData();
|
||||
}
|
||||
|
||||
foreach ($form->Fields() as $fieldList) {
|
||||
foreach ($fieldList->getForm()->fields()->dataFields() as $field) {
|
||||
$schema['fields'][] = $field->getSchemaData();
|
||||
}
|
||||
// TODO Implemented nested fields and use Fields() instead
|
||||
foreach ($form->Fields()->dataFields() as $field) {
|
||||
$schema['fields'][] = $field->getSchemaData();
|
||||
}
|
||||
|
||||
return $schema;
|
||||
|
Loading…
Reference in New Issue
Block a user