https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19563 --- Comment #1 from David Gustafsson <glasklas@gmail.com> --- Created attachment 68889 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68889&action=edit Bug 19563: Generation of sort_fields uses incorrect condition Fix incorrect condition for if clause for generating <field>__sort mappings for Elasticsearch. Also remove redundant check for same condition when generating fixer rules. Test plan: 1. Inspect current mappings for example by viewing: http://<elasticsearch_host>:9200/koha_<koha_instance_name>_biblios/_mapping. 2. If using the default configuraion only "author" has a sort field (author__sort). 4. Appy patch. 5. Reindex using rebuild_elastic_search.pl. 6. All fields except those with sort sort set to "0" should now have sort fields, which in the default configuration is all but "author". -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.