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

Export action loading list action associations #1954

Closed
neutralino1 opened this issue Apr 8, 2014 · 0 comments
Closed

Export action loading list action associations #1954

neutralino1 opened this issue Apr 8, 2014 · 0 comments
Milestone

Comments

@neutralino1
Copy link

Hi all,

I'm reading through what happens when someone attempts to export a selection of records.
Just like in the list action, the get_collection method is called to retrieve the collection.
Now the first line of the method goes

associations = model_config.list.fields.select { |f| f.type == :belongs_to_association && !f.polymorphic? }.collect { |f| f.association.name }

in order to retrieve the associations to include in the query. Now this is all fine but notice how the list model configuration is used : model_config.list.
In the case of an export action, this should be accessing the export settings.

In effet, I do see in the logs association being queried for that were configured in the list action but not in the export action.

Is this a feature or a bug?

@mshibuya mshibuya added this to the 3.0.0 milestone Oct 9, 2021
@mshibuya mshibuya modified the milestones: 3.0.0, 3.1.0 Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants