Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload export data when list is (re)filtered #842

Merged
merged 2 commits into from
Dec 10, 2015

Conversation

lucval
Copy link

@lucval lucval commented Dec 10, 2015

exportToCsv function was failing to correctly reload data in a new filtered page. This was due to an incorrect search parameters given to the ReadQueries getAll function. Using $stateParams' search
attribute (instead of scope.search()) solves the issue.

Fix ng-admin issue #738.

exportToCsv function was failing to correctly (re)load data in a new
filtered page. This was due to an incorrect search parameters given
to the ReadQueries getAll function. Using $stateParams' search
attribute (instead of scope.search()) solves the issue.
@@ -4,8 +4,7 @@ export default function maExportToCsvButton ($stateParams, Papa, notification, A
scope: {
entity: '&',
label: '@',
datastore: '&',
search: '&'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll have to remove the search param where the directive is called, in listLayout.thml

@lucval
Copy link
Author

lucval commented Dec 10, 2015

You are right, forgot to push it. It is fixed now.

fzaninotto added a commit that referenced this pull request Dec 10, 2015
Reload export data when list is (re)filtered
@fzaninotto fzaninotto merged commit b55b682 into marmelab:master Dec 10, 2015
@fzaninotto
Copy link
Member

Thanks!

@lucval lucval deleted the reload-export-data branch December 14, 2015 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants