New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Search] Sorting columns of localized fields #3618

SEYentl opened this Issue Nov 16, 2018 · 2 comments


None yet
3 participants

SEYentl commented Nov 16, 2018

Expected behavior

If a language is selected in the grid options it should be possible to sort based on the string.
This behaviour actually does work in normal object grids.

Actual behavior

Sort on localized fields doesn't work

Steps to reproduce

screen recording 2018-11-16 at 13 44 56


This comment has been minimized.

SEYentl commented Nov 16, 2018

This beahviour is reproducable on the demo:
screenshot 2018-11-16 at 13 51 58

@brusch brusch added the Improvement label Nov 16, 2018

@brusch brusch changed the title from Sort on localized field doesn't work in object search to [Search] Sorting columns of localized fields Nov 16, 2018


This comment has been minimized.


psuhane commented Nov 21, 2018

The issue is not only with localized fields, it is also with the non-localized fields.

Sorting only supported for columns available in search_backend_data and will this be feasible to make it work with subtype table's columns?

Currently the filter query works like this

SELECT * FROM search_backend_data WHERE ( id IN (SELECT object_4.o_id FROM object_4 WHERE ((gender = 'male' ))) ) AND ( maintype IN ('object') ) AND ( subtype IN ('person') ) LIMIT 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment