You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by paulboudewijn November 19, 2021
When no sort field is configured for a relation, the PK is used as the default sort field instead of using the field(s) used in the display template. This results in a seemingly random list of items in the m2m interface.
I have a PR ready.
To Reproduce
Create a 'book' collection with the 'title' and 'subtitle' fields
Create an 'author' collection
Create a m2m relation between 'author' and 'book', without sortfield and interface displaytemplate
Note that the m2m interface list 'books' on the 'author' collection is sorted by the PK field
Add displaytemplate {{book_id.title}} - {{book_id.subtitle}} to the interface
Note that the m2m interface list is still sorted in the PK field, although title and subtitle alphabetically could suggest otherwise
Add a sort field sort to the relation
Note that the interface list is sorted on this column (as expected)
The text was updated successfully, but these errors were encountered:
Discussed in #12771
Originally posted by paulboudewijn November 19, 2021
When no sort field is configured for a relation, the PK is used as the default sort field instead of using the field(s) used in the display template. This results in a seemingly random list of items in the m2m interface.
I have a PR ready.
To Reproduce
{{book_id.title}} - {{book_id.subtitle}}
to the interfacesort
to the relationThe text was updated successfully, but these errors were encountered: