Only iterate through dataFields() in FormSchema

Temporary measure until we implement nested fields
This commit is contained in:
Ingo Schommer 2016-03-21 23:12:07 +13:00
parent 8ae2894890
commit adbcddee80

View File

@ -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;