Skip to content

Datasource-grouping only works for first associated section #86

@twiro

Description

@twiro

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) SBL-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 SBL-field - doesn't do a difference. I also tested this scenario with Association Field - obviously has the same bug.

Setup:

  • Symphony 2.6.11
  • Selectbox Link Field 2.0.0
  • Association Field 2.0.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions