Merge pull request #1214 from Fedik/fix-xml-export-options
XML export driver: fix the options export
This commit is contained in:
commit
9900d35367
@ -206,7 +206,8 @@ class XmlExporter extends AbstractExporter
|
||||
if (isset($field['options'])) {
|
||||
$optionsXml = $fieldXml->addChild('options');
|
||||
foreach ($field['options'] as $key => $value) {
|
||||
$optionsXml->addAttribute($key, $value);
|
||||
$optionXml = $optionsXml->addChild('option', $value);
|
||||
$optionXml->addAttribute('name', $key);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user