View | Details | Raw Unified | Return to bug 18235
Collapse All | Expand All

(-)a/Koha/SearchEngine/Elasticsearch.pm (-4 / +8 lines)
Lines 285-295 sub reset_elasticsearch_mappings { Link Here
285
            my $field_label = $data->{label};
285
            my $field_label = $data->{label};
286
            my $mappings = $data->{mappings};
286
            my $mappings = $data->{mappings};
287
            my $facet_order = $data->{facet_order};
287
            my $facet_order = $data->{facet_order};
288
            my $search_field = Koha::SearchFields->find_or_create({ name => $field_name });
288
            my $search_field = Koha::SearchFields->find_or_create({ 
289
                name  => $field_name,
290
                label => $field_label,
291
                type  => $field_type,
292
            },
293
            {
294
                key => 'name'
295
            });
289
            $search_field->update(
296
            $search_field->update(
290
                {
297
                {
291
                    label       => $field_label,
292
                    type        => $field_type,
293
                    facet_order => $facet_order
298
                    facet_order => $facet_order
294
                }
299
                }
295
            );
300
            );
296
- 

Return to bug 18235