Bug 27316: (follow-up) Default to 1 if undef in mappings
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit e1d85738cc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
ee6f739d59
commit
34bb69dd99
|
|
@ -374,7 +374,7 @@ sub reset_elasticsearch_mappings {
|
|||
$search_field->add_to_search_marc_maps($marc_field, {
|
||||
facet => $mapping->{facet} || 0,
|
||||
suggestible => $mapping->{suggestible} || 0,
|
||||
sort => $mapping->{sort},
|
||||
sort => $mapping->{sort} // 1,
|
||||
search => $mapping->{search} // 1
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue