Skip to content

Commit

Permalink
fix(core): Do not clear condition when clearing all filters
Browse files Browse the repository at this point in the history
When a user clicks the grid menu's "clear all filters", do not remove the filter's 9possibly custom)

`condition`.

Fixes #4657
  • Loading branch information
Luis Lebolo committed Apr 26, 2016
1 parent 68681d7 commit 97be89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/directives/ui-grid-menu-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ angular.module('ui.grid')
var clearFilters = [{
title: i18nService.getSafeText('gridMenu.clearAllFilters'),
action: function ($event) {
$scope.grid.clearAllFilters(undefined, true, undefined);
$scope.grid.clearAllFilters();
},
shown: function() {
return $scope.grid.options.enableFiltering;
Expand Down

0 comments on commit 97be89a

Please sign in to comment.