Skip to content

Commit

Permalink
Merge pull request #2671 from Dominikrt/fix-backend-voucher-individua…
Browse files Browse the repository at this point in the history
…l-code

fix: backend voucher individual code search
  • Loading branch information
mitelg authored May 21, 2024
2 parents e760027 + f23abef commit 2ac9e0f
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 2ac9e0f

Please sign in to comment.