Made property-group elements optional in TDFs
This commit is contained in:
@@ -159,10 +159,12 @@ class XmlService
|
||||
$deviceElement->setAttribute($attrName, $attrValue);
|
||||
}
|
||||
|
||||
if (!empty($tdf->propertyGroups)) {
|
||||
$propertyGroupsElement = $document->createElement('property-groups');
|
||||
foreach ($tdf->propertyGroups as $propertyGroup) {
|
||||
$propertyGroupsElement->append($this->toXmlService->propertyGroupToXml($propertyGroup, $document));
|
||||
}
|
||||
}
|
||||
|
||||
$deviceElement->append($propertyGroupsElement);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user