[Koha-bugs] [Bug 29010] New: weight input pattern wrong
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Sep 14 11:10:57 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29010
Bug ID: 29010
Summary: weight input pattern wrong
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Searching - Elasticsearch
Assignee: koha-bugs at lists.koha-community.org
Reporter: domm at plix.at
search_field.weight is of type NUMERIC(5,2) in the database, and values are
rendered as floats in /admin/searchengine/elasticsearch/mappings.pl
But the field validation only accepts INTs:
<input type="text" inputmode="numeric" pattern="[0-9]*"
name="search_field_weight" value="[% search_field.weight | html %]" />
To fix this, change the regexp in patter as follows:
pattern="[0-9\.]*"
I can supply a proper patch in a few minutes...
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list