[pve-devel] [PATCH manager] gui: use empty default cpu data for ProcessorInputPanel

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Feb 1 10:27:43 CET 2016


Since the create wizard doesn't fill the cpu type we need a
default to avoid accessing undefined values.
---
 www/manager/qemu/ProcessorEdit.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/manager/qemu/ProcessorEdit.js b/www/manager/qemu/ProcessorEdit.js
index ee8f528..686a70a 100644
--- a/www/manager/qemu/ProcessorEdit.js
+++ b/www/manager/qemu/ProcessorEdit.js
@@ -38,6 +38,8 @@ Ext.define('PVE.qemu.ProcessorInputPanel', {
     initComponent : function() {
 	var me = this;
 
+	me.cpu = {};
+
 	me.column1 = [
 	    {
 		xtype: 'numberfield',
-- 
2.1.4





More information about the pve-devel mailing list