Commit b5234441 authored by Ad Schellevis's avatar Ad Schellevis

(model) enforce uuid's on ArrayField types

parent 79636d4a
......@@ -162,9 +162,14 @@ abstract class BaseModel
$tagUUID = $internal_data->generateUUID();
}
// iterate array items from config data
$child_node = new ContainerField($fieldObject->__reference . "." . $tagUUID, $tagName);
$this->parseXml($xmlNode, $conf_section, $child_node);
if (!isset($conf_section->attributes()->uuid)) {
// if the node misses a uuid, copy it to this nodes attributes
$child_node->setAttributeValue('uuid', $tagUUID);
}
$fieldObject->addChildNode($tagUUID, $child_node);
}
} else {
......
Markdown is supported
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