[pve-devel] [PATCH manager] Fix 895: don't drop the other processor values on load()
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Feb 18 08:29:02 CET 2016
(Introduced in a5d21db: preserve extra cpu options)
---
www/manager/qemu/ProcessorEdit.js | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/www/manager/qemu/ProcessorEdit.js b/www/manager/qemu/ProcessorEdit.js
index e65c535..e2bad11 100644
--- a/www/manager/qemu/ProcessorEdit.js
+++ b/www/manager/qemu/ProcessorEdit.js
@@ -119,11 +119,14 @@ Ext.define('PVE.qemu.ProcessorEdit', {
me.load({
success: function(response, options) {
- var value = response.result.data['cpu'];
- var cpu = PVE.Parser.parseQemuCpu(value);
- ipanel.cpu = cpu;
- if (value)
- me.setValues({ cputype: cpu.cputype });
+ var data = response.result.data;
+ var value = data['cpu'];
+ if (value) {
+ var cpu = PVE.Parser.parseQemuCpu(value);
+ ipanel.cpu = cpu;
+ data.cputype = cpu.cputype;
+ }
+ me.setValues(data);
}
});
}
--
2.1.4
More information about the pve-devel
mailing list