Skip to content

Commit

Permalink
Merge pull request marmelab#1290 from marmelab/fix_filter_autoupdate
Browse files Browse the repository at this point in the history
[RFR] Fix filter which was overwriting url after a change
  • Loading branch information
Kmaschta authored Jan 9, 2017
2 parents 328d3e3 + fb13a50 commit 808e645
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/javascripts/ng-admin/Crud/list/ListLayoutController.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default class ListLayoutController {
if ($location.path() !== this.path) {
return; // already transitioned to another page
}
this.search = ListLayoutController.getCurrentSearchParam($location, this.filters);
this.enabledFilters = this.getEnabledFilters();
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ describe('directive: ma-embedded-list-field', function () {
expect(element.find('a').eq(1).text().trim()).toBe('REMOVE');
expect(element.find('input').eq(2).scope().value).toBe(2);
expect(element.find('input').eq(3).scope().value).toBe('bar');
expect(element.find('a').eq(2).text().trim()).toBe('ADD_NEW');
expect(element.find('a').eq(2).text().trim()).toBe('ADD_NEW dummy');
});

describe('Add Button', () => {
fit('should display lower-cased label', () => {
it('should display lower-cased label', () => {
scope.field = new EmbeddedListField('dummy_field')
.label('Awesome Entity');

Expand Down

0 comments on commit 808e645

Please sign in to comment.