FIX create subview mediatype dropdown

This commit is contained in:
aina-esokia
2018-06-20 17:26:19 +04:00
parent e74fb4b877
commit 5488d5d47c
2 changed files with 6 additions and 3 deletions

View File

@@ -197,7 +197,10 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
$subdef->setAttribute('class', $class);
$subdef->setAttribute('name', mb_strtolower($name));
$subdef->setAttribute('presets', $preset);
$subdef->setAttribute('mediaType', $mediatype);
$mediaTypeElement = $dom_struct->createElement('mediatype');
$mediaTypeElement->appendChild($dom_struct->createTextNode($mediatype));
$subdef->appendChild($mediaTypeElement);
$dom_xp = $this->databox->get_xpath_structure();
$query = '//record/subdefs/subdefgroup[@name="' . $groupname . '"]';