fix choose option

This commit is contained in:
aynsix
2022-01-06 18:38:47 +03:00
parent c4c6cb25c3
commit 1d3f9a73be
2 changed files with 15 additions and 0 deletions

View File

@@ -197,6 +197,8 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
$subdef = $dom_struct->createElement('subdef');
$subdef->setAttribute('class', $class);
$subdef->setAttribute('name', mb_strtolower($name));
$preset = ($preset == 'Choose') ? 'Custom' : $preset ;
$subdef->setAttribute('presets', $preset);
$mediaTypeElement = $dom_struct->createElement('mediatype');