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

Exporting CSV file doesn't include the permanent filter #2933

Closed
jheiska opened this issue Feb 26, 2019 · 2 comments
Closed

Exporting CSV file doesn't include the permanent filter #2933

jheiska opened this issue Feb 26, 2019 · 2 comments
Assignees
Labels

Comments

@jheiska
Copy link

jheiska commented Feb 26, 2019

What you were expecting:
Exported CSV file to take into account the permanent filter of the List component.

What happened instead:
CSV file includes all entries, regardless of the permanent filter.

Steps to reproduce:
Create a List component with a permanent filter. For example
<List {...props} filter={{id: 1}} >
Download CSV file by using the export button.

Environment

  • React-admin version: 2.7.0
  • React version: 16.4.1
  • Browser: Chrome

I know I can probably achieve this by creating a custom exporter function. If this is intended behavior, it should be mentioned in the documentation.

@fzaninotto
Copy link
Member

Confirmed, that's a bug. The List doesn't even pass the filter prop to the ListActions component.

@fzaninotto fzaninotto added the bug label Feb 26, 2019
@kopax
Copy link
Contributor

kopax commented Mar 25, 2019

Without going in depth directly, and just to confirm, if we pass filter to the ListActions, it should work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants