Skip to content

Commit

Permalink
fix(registry): Fix the search filter in the payment registry (reserve…
Browse files Browse the repository at this point in the history
…d = 0))
  • Loading branch information
DedrickEnc committed Aug 31, 2017
1 parent 41611e8 commit 4f635ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/src/js/services/FilterService.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ function FilterService(Store) {

Object.keys(this._filterIndex).forEach(function (key) {
var filter = this._filterIndex[key];

if (filter._value) {
if (filter._value !== null && filter._value !== undefined && filter._value.length !== '') {
filtered.push(angular.copy(filter));
}
}.bind(this));
Expand Down
2 changes: 1 addition & 1 deletion client/src/modules/cash/payments/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function CashPaymentRegistryController(
Modal.openSearchCashPayment(filtersSnapshot)
.then(function (changes) {
Cash.filters.replaceFilters(changes);

Cash.cacheFilters();
vm.latestViewFilters = Cash.filters.formatView();

Expand Down

0 comments on commit 4f635ff

Please sign in to comment.