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

Datasource-grouping only works for first associated section #25

Open
twiro opened this issue Aug 17, 2017 · 1 comment
Open

Datasource-grouping only works for first associated section #25

twiro opened this issue Aug 17, 2017 · 1 comment
Labels

Comments

@twiro
Copy link
Member

twiro commented Aug 17, 2017

I have the following scenario:

  • One "Images"-section is used to manage all images of two other sections "Projects" and "News".
  • The entries in the "Images"-section are associated to a single entry of on of these two "parent"-sections. I use a (hidden) Association-field called "entry" for that.
  • I have a datasource called "images" that pulls all the images for the currently needed entries.
  • On specific fronted pages I have to show images for multiple entries, so I want to group the entries in the "images"-datasource by their parent-entry.

This results in the following buggy behavior:

  • The image-entries associated to entries of the first parent-section "Projects" show up as expected in the datasource (grouped by parent-entry).
  • The image-entries associated to entries of the second parent-section "News" simply disappear.

As soon as I turn off grouping all expected image-entries (of both parent-sections) are included in the datasource again. I also tried switching to a more fancy name than "entry" for the Association-field - doesn't do a difference. I also tested this scenario with Selectbox Link Field - obviously has the same bug.

Setup:

  • Symphony 2.6.11
  • Selectbox Link Field 2.0.0
  • Association Field 2.0.1
@twiro
Copy link
Member Author

twiro commented Jun 1, 2019

Just a reminder – I ran into the exactly same bug in my latest project!

Setup is:

  • Symphony 2.7.10
  • Association Field 2.1.0

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

1 participant