Closed (fixed)
Project:
Flag
Version:
5.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2026 at 18:08 UTC
Updated:
28 Mar 2026 at 09:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
ivnishComment #4
ivnishComment #5
deaom commentedIf I understand correctly the issue is the links are not displayed in the order set in admin page when viewing the node?
The code in the MR does not solve the issue for entities that have the manage display where the order is handled. So not sure if this is needed? As the ordering of flags on admin page does not handle the display order? Will let maintainers decide as I'm not sure I even understand the issue correctly.
Comment #6
dotpex commented@Dea yes you understand issue correctly, it's about entity links, this change just add sort on query and does not affect order of fields when you configure flags as fields.
Comment #7
deaom commentedTest would be needed to demonstrate this behavior as I can confirm the query does sort when looking with debugger, but do not see that output on nodes.
Comment #8
dotpex commentedHi @Dea sorry I don't have a time to write test, I already spend too much time for this and it's basically one line added. On project I'm working on this work fine for set of flags that are configured to be displayed in entity links and have no effect for other flags that are configured "Display link as field".
I attached screenshot of config and patch if someone else have same issue.
Comment #9
deaom commentedI'll see if I can write a test based on additional explanation. It's not a big change as it's just adding an order to a query, so nothing should break with this patch, as manage display is still working as expected (tested manually). Will change status to needs work for the test, but maintainers can decide if this can be merged without one.
Comment #10
deaom commentedAdded test for inline links to showcase weights are now working as the inline links are getting sorted based on what's set in the admin/structure/flag. Ready for review.
Comment #11
ivnishComment #13
ivnish