Failed to sort on Lens view with Tag field #6839
Unanswered
kichetof
asked this question in
Ideas & Feature Requests
Replies: 2 comments
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
When you add a
Tag
field to a Lens, you can't sort columns.According to this #6311 (comment), lens should be used to display flattened data, and BelongsToMany isn't flattened. But, I think that
Tag
field is the "flattened view" of a belongsToMany. What do you think?Detailed steps to reproduce the issue on a fresh Nova installation:
Uncomment this code and sort UserLens view with any columns.
https://github.com/kichetof/nova-issue-6806/blob/2ea23cd0d1f05b02b3a7d9c3d7efab53eb085982/app/Nova/User.php#L69-L75
Beta Was this translation helpful? Give feedback.
All reactions