[pve-devel] [PATCH pve-manager 1/3] ext6migrate: replace unsafe pattern

Emmanuel Kasper e.kasper at proxmox.com
Thu Feb 4 14:46:37 CET 2016


using applyIf is not safe here as the tbar property has already been set
by the framework ( and anyway we would like to override any default
set by the framework )

this allows the toolbar of the component to be displayed
---
 www/manager6/grid/FirewallAliases.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/grid/FirewallAliases.js b/www/manager6/grid/FirewallAliases.js
index 353b97c..c8ca4fa 100644
--- a/www/manager6/grid/FirewallAliases.js
+++ b/www/manager6/grid/FirewallAliases.js
@@ -164,7 +164,7 @@ Ext.define('PVE.FirewallAliases', {
 	});
 
 
-	Ext.applyIf(me, {
+	Ext.apply(me, {
 	    store: store,
 	    tbar: [ me.addBtn, me.removeBtn, me.editBtn ],
 	    selModel: sm,
-- 
2.1.4





More information about the pve-devel mailing list