mirror of
https://github.com/unraid/webgui.git
synced 2026-04-21 09:19:35 -05:00
Removed conflicting setting for OpenELEC/LibreELEC form updates
This commit is contained in:
@@ -363,6 +363,9 @@ $hdrXML = "<?xml version='1.0' encoding='UTF-8'?>\n"; // XML encoding declaratio
|
||||
$arrExistingConfig['metadata']['vmtemplate']['@attributes']['xmlns'] = 'unraid';
|
||||
$arrExistingConfig['cputune']['vcpupin'] = [];
|
||||
$arrUpdatedConfig = custom::createArray('domain',$lv->config_to_xml($_POST));
|
||||
// controller USB removed from updated config
|
||||
unset($arrUpdatedConfig['devices']['controller']);
|
||||
// it already exists and causes wrong array merge below. PHP bug?
|
||||
$arrConfig = array_replace_recursive($arrExistingConfig, $arrUpdatedConfig);
|
||||
$xml = custom::createXML('domain',$arrConfig)->saveXML();
|
||||
}
|
||||
|
||||
@@ -365,6 +365,9 @@ $hdrXML = "<?xml version='1.0' encoding='UTF-8'?>\n"; // XML encoding declaratio
|
||||
$arrExistingConfig['metadata']['vmtemplate']['@attributes']['xmlns'] = 'unraid';
|
||||
$arrExistingConfig['cputune']['vcpupin'] = [];
|
||||
$arrUpdatedConfig = custom::createArray('domain',$lv->config_to_xml($_POST));
|
||||
// controller USB removed from updated config
|
||||
unset($arrUpdatedConfig['devices']['controller']);
|
||||
// it already exists and causes wrong array merge below. PHP bug?
|
||||
$arrConfig = array_replace_recursive($arrExistingConfig, $arrUpdatedConfig);
|
||||
$xml = custom::createXML('domain',$arrConfig)->saveXML();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user