1
0
mirror of synced 2024-12-05 03:06:05 +03:00

XML export driver: fix export options

This commit is contained in:
Fedik 2014-12-07 13:05:19 +02:00
parent 0059e01936
commit c1eff7045a

View File

@ -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);
}
}