From 1d5e523aa0cc529cd8ff6e02e7e9ff08686df9a4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 23 Jan 2020 13:42:02 +0100 Subject: [PATCH] mixin cbind: avoid undefined cbindData access Else we can fail at the first fallback check in getConfigValue while we still have the possibility to have the cbinded key available in "me" (initial config). Signed-off-by: Thomas Lamprecht --- mixin/CBind.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mixin/CBind.js b/mixin/CBind.js index 614c6aa..2d0a3ee 100644 --- a/mixin/CBind.js +++ b/mixin/CBind.js @@ -11,8 +11,9 @@ Ext.define('Proxmox.Mixin.CBind', { var me = this; if (typeof(me.cbindData) == "function") { - me.cbindData = me.cbindData(me.initialConfig) || {}; + me.cbindData = me.cbindData(me.initialConfig); } + me.cbindData = me.cbindData || {}; var getConfigValue = function(cname) {