Skip to content

Commit

Permalink
[BUGFIX] Data Structure ERROR: No ['ROOT']['el'] element found in fle…
Browse files Browse the repository at this point in the history
…x form definition

Is defined as array in the xml, but seems you need to make
it an array on your own in newer T3 versions.
  • Loading branch information
Mabahe committed Mar 8, 2019
1 parent ba0155d commit d4edd3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Form/FormDataProvider/TcaAttributeFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ protected function addAttributeFields(array $result)
$attributeCount = $attributeRepository->countAttributes();

$root = &$result['processedTca']['columns']['attributes']['config']['ds']['sheets']['sDEF']['ROOT']['el'];
if (empty($root) && !is_array($root)) {
$root = [];
}
if ($attributeCount) {
foreach ($correlationTypes as $correlationType) {
$config = $this->fieldConfig;
Expand Down

0 comments on commit d4edd3f

Please sign in to comment.