From f27b0f68e3bc3614a9ffa63f6e6b6d22bfc25ffe Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 15 Jan 2020 13:09:56 +0100 Subject: [PATCH] cbind: handle properties with undefined value in cloneTemplateObject Signed-off-by: Thomas Lamprecht --- mixin/CBind.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mixin/CBind.js b/mixin/CBind.js index 4bd4a55..614c6aa 100644 --- a/mixin/CBind.js +++ b/mixin/CBind.js @@ -110,6 +110,10 @@ Ext.define('Proxmox.Mixin.CBind', { var res = {}, prop, el, copy; for (prop in org) { el = org[prop]; + if (el === undefined || el === null) { + res[prop] = el; + continue; + } if (el.constructor == Object && el.xtype) { copy = cloneTemplateObject(el); if (copy.cbind) {