[pve-devel] [PATCH manager 1/5] ui: lxc: cpu edit: drop superfluous delete_if_default
Fiona Ebner
f.ebner at proxmox.com
Fri Oct 7 14:41:52 CEST 2022
Commit 9fcbafbe ("use IntegerField from widget toolkit") switched to
using an Promxox IntegerField with 'deleteEmpty: true'. This means
that a value of '' already is removed from 'values' and added to
'delete' before onGetValues() is called here.
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
www/manager6/lxc/ResourceEdit.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/www/manager6/lxc/ResourceEdit.js b/www/manager6/lxc/ResourceEdit.js
index 6f21571b..f926d784 100644
--- a/www/manager6/lxc/ResourceEdit.js
+++ b/www/manager6/lxc/ResourceEdit.js
@@ -46,7 +46,6 @@ Ext.define('PVE.lxc.CPUInputPanel', {
onGetValues: function(values) {
var me = this;
- PVE.Utils.delete_if_default(values, 'cores', '', me.insideWizard);
// cpu{limit,unit} aren't in the wizard so create is always false
PVE.Utils.delete_if_default(values, 'cpulimit', '0', 0);
PVE.Utils.delete_if_default(values, 'cpuunits', '1024', 0);
--
2.30.2
More information about the pve-devel
mailing list