mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-18 03:01:05 +01:00
fix bug in Sonia.rest.JsonStore
This commit is contained in:
@@ -199,7 +199,7 @@ Sonia.plugin.Store = Ext.extend(Sonia.rest.JsonStore, {
|
||||
field: 'name'
|
||||
}
|
||||
};
|
||||
Sonia.plugin.Store.superclass.constructor.call(this, Ext.apply(config, baseConfig));
|
||||
Sonia.plugin.Store.superclass.constructor.call(this, Ext.apply(baseConfig, config));
|
||||
}
|
||||
|
||||
});
|
||||
@@ -246,6 +246,9 @@ Sonia.plugin.Grid = Ext.extend(Sonia.rest.Grid, {
|
||||
};
|
||||
|
||||
Sonia.plugin.CenterInstance.addListener('changed', function(){
|
||||
if (debug){
|
||||
console.debug( 'receive change event, reload plugin store' );
|
||||
}
|
||||
this.getStore().reload();
|
||||
}, this);
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ Sonia.rest.JsonStore = Ext.extend( Ext.data.JsonStore, {
|
||||
}
|
||||
}
|
||||
};
|
||||
Sonia.rest.JsonStore.superclass.constructor.call(this, Ext.apply(config, baseConfig));
|
||||
Sonia.rest.JsonStore.superclass.constructor.call(this, Ext.apply(baseConfig, config));
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user