Thank you for reporting this bug. We will make it our priority to review this report.
Old filters still exists when binding 'filters' config of the store
Old filters still exists when binding 'filters' config of the store
Hello.
Seems that there is bug when binding 'filters' config option of the store via viewmodel like this:
Code:
viewModel: {
stores: {
testStore: {
type: 'mystore',
filters : '{filtersFormula}'
},
formulas: {
filtersFormula: {
...
}
}
}
}
Fiddle: http://ift.tt/1wn0vYq
Please inspect console 'filterchange' log message after changing 3 times of the combo. All filters still exists.The next override can help to solve this issue:
Code:
Ext.define('Spa.override.data.AbstractStore',{
override: 'Ext.data.AbstractStore',
applyFilters: function (filters, filtersCollection) {
if (filtersCollection) filtersCollection.clear();
return this.callParent(arguments);
}
});
Old filters still exists when binding 'filters' config of the store
Aucun commentaire:
Enregistrer un commentaire