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
When sorting should happen by clicking on the column, it will sort the model relation fields by their (hidden) UUID value, and not in an alphabetic or numeric order (what a user would expect.)
To Reproduce
Sort any model relation field in a bootgrid, it will be sorted by UUID and not by their display value.
Expected behavior
It's sorted by their displayed value, for example alphabetic.
Describe alternatives you considered
Filling out the description field and sorting it can be a workaround for some usecases.
Software version used and hardware type if relevant, e.g.:
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
Related to: opnsense/plugins#3914
When using a model relation field like this:
https://github.com/opnsense/plugins/blob/8f2490aa8a1a1d057d1de2a30521d0037cc3c519/www/caddy/src/opnsense/mvc/app/models/OPNsense/Caddy/Caddy.xml#L159-L169
And having it included in the SearchBase() function like this:
https://github.com/opnsense/plugins/blob/4d63eeca500174b9faccbdf98bb129b19d4415a9/www/caddy/src/opnsense/mvc/app/controllers/OPNsense/Caddy/Api/ReverseProxyController.php#L112
or like this:
https://github.com/opnsense/plugins/blob/8f2490aa8a1a1d057d1de2a30521d0037cc3c519/www/caddy/src/opnsense/mvc/app/controllers/OPNsense/Caddy/Api/ReverseProxyController.php#L112
And then displaying it in a view in a bootgrid:
https://github.com/opnsense/plugins/blob/8f2490aa8a1a1d057d1de2a30521d0037cc3c519/www/caddy/src/opnsense/mvc/app/views/OPNsense/Caddy/reverse_proxy.volt#L242
To Reproduce
Sort any model relation field in a bootgrid, it will be sorted by UUID and not by their display value.
Expected behavior
It's sorted by their displayed value, for example alphabetic.
Describe alternatives you considered
Filling out the description field and sorting it can be a workaround for some usecases.
Software version used and hardware type if relevant, e.g.:
OPNsense 24.1.5_1-amd64
FreeBSD 13.2-RELEASE-p11
OpenSSL 3.0.13
The text was updated successfully, but these errors were encountered: