Skip to content

Commit

Permalink
fix: backend voucher codes search reset on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominikrt committed May 18, 2024
1 parent e760027 commit f23abef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion themes/Backend/ExtJs/backend/voucher/controller/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,15 @@ Ext.define('Shopware.apps.Voucher.controller.Code', {
var me = this,
searchString = Ext.String.trim(value),
store = me.subApplication.getStore('Code');
store.filter('filter', searchString);

store.filters.clear();

if (searchString.length <= 0) {
store.load();
return;
}

store.filter('filter', searchString);
},

/**
Expand Down
1 change: 1 addition & 0 deletions themes/Backend/ExtJs/backend/voucher/controller/voucher.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ Ext.define('Shopware.apps.Voucher.controller.Voucher', {
mode = record.data.modus,
codeStore = me.getStore('Code');

codeStore.filters.clear();
codeStore.clearData();
codeStore.currentPage = 1;

Expand Down

0 comments on commit f23abef

Please sign in to comment.