diff --git a/apps/common/main/lib/component/Window.js b/apps/common/main/lib/component/Window.js
index f7a869d054..e20ab781fb 100644
--- a/apps/common/main/lib/component/Window.js
+++ b/apps/common/main/lib/component/Window.js
@@ -176,9 +176,9 @@ define([
'' +
'<% } %>' +
'
<%= tpl %>' +
- '<% if (typeof (buttons) !== "undefined" && _.size(buttons) > 0) { %>' +
+ '<% if (typeof (buttonsParsed) !== "undefined" && _.size(buttonsParsed) > 0) { %>' +
'' +
@@ -639,7 +639,7 @@ define([
}
});
- options.buttons = newBtns;
+ options.buttonsParsed = newBtns;
options.footerCls = options.footerCls || 'center';
}