1
0
mirror of synced 2025-02-07 15:59:27 +03:00

Merge pull request #1214 from Fedik/fix-xml-export-options

XML export driver: fix the options export
This commit is contained in:
Guilherme Blanco 2014-12-07 10:52:45 -05:00
commit 9900d35367

View File

@ -206,7 +206,8 @@ class XmlExporter extends AbstractExporter
if (isset($field['options'])) { if (isset($field['options'])) {
$optionsXml = $fieldXml->addChild('options'); $optionsXml = $fieldXml->addChild('options');
foreach ($field['options'] as $key => $value) { foreach ($field['options'] as $key => $value) {
$optionsXml->addAttribute($key, $value); $optionXml = $optionsXml->addChild('option', $value);
$optionXml->addAttribute('name', $key);
} }
} }