]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
cbind: handle properties with undefined value in cloneTemplateObject
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 15 Jan 2020 12:09:56 +0000 (13:09 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 23 Jan 2020 12:43:29 +0000 (13:43 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
mixin/CBind.js

index 4bd4a55477de3dc86e510157908cca560a7a65af..614c6aa99dddbb7470565ab33d49e4b1e219c758 100644 (file)
@@ -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) {