[pve-devel] [PATCH manager 1/2] remove unnecessary trigraph
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Oct 31 11:06:59 CET 2016
values['delete'] is always empty here, plus the code was buggy for
the case that it wasn't:
values['delete'] = values['delete'] ? ',group' : 'group';
^^^
always overwrites values['delete'], even if not empty
So just drop it here.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
www/manager6/ha/ResourceEdit.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/manager6/ha/ResourceEdit.js b/www/manager6/ha/ResourceEdit.js
index fcf62ec..e3ba286 100644
--- a/www/manager6/ha/ResourceEdit.js
+++ b/www/manager6/ha/ResourceEdit.js
@@ -12,7 +12,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
if (values.group === '') {
if (!me.create) {
- values['delete'] = values['delete'] ? ',group' : 'group';
+ values['delete'] = 'group';
}
delete values.group;
}
--
2.1.4
More information about the pve-devel
mailing list