Commit c0b76a8b authored by damjan's avatar damjan
Browse files

[BUGFIX] Label tag must not be array

I couldnt reproduce bug where label tag in xml file is marked as array, but this would fix that issue.

Resolves: forge.typo3.org/issues/67142
parent 2114bb5b
......@@ -185,7 +185,8 @@ class FileBaseXMLService extends FileBaseService {
$tagName = $parentTagMap[$parentTagName];
$indexAttributeValue = $key;
}
if (is_array($value)) {
// If element is array, check that it is not 'label' tag, just in case
if (is_array($value) && $tagName !== 'label') {
if (is_numeric($tagName)) {
$tagName = 'item' . $tagName;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment