Bugzilla – Attachment 101854 Details for
Bug 23204
Add script for exporting Elasticsearch mappings to YAML
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23204: sort search fields by name
Bug-23204-sort-search-fields-by-name.patch (text/plain), 993 bytes, created by
Jonathan Druart
on 2020-03-26 14:16:33 UTC
(
hide
)
Description:
Bug 23204: sort search fields by name
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-26 14:16:33 UTC
Size:
993 bytes
patch
obsolete
>From 2e835bf98581e0e421b4d4519720a1561e4d8428 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Thu, 3 Oct 2019 07:23:07 +0000 >Subject: [PATCH] Bug 23204: sort search fields by name > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/SearchEngine/Elasticsearch.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm >index 0863faf307..850a4373d1 100644 >--- a/Koha/SearchEngine/Elasticsearch.pm >+++ b/Koha/SearchEngine/Elasticsearch.pm >@@ -258,7 +258,7 @@ sub raw_elasticsearch_mappings { > > my $schema = Koha::Database->new()->schema(); > >- my $search_fields = Koha::SearchFields->search(); >+ my $search_fields = Koha::SearchFields->search({}, { order_by => { -asc => 'name' } }); > > my $mappings = {}; > while ( my $search_field = $search_fields->next ) { >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23204
:
90999
|
91350
|
92022
|
92023
|
92024
|
92174
|
93524
|
95986
|
100960
|
100961
|
100962
|
100963
|
100964
|
100965
|
101742
|
101850
|
101851
|
101852
|
101853
| 101854 |
101855
|
101856
|
101857
|
101858
|
102010