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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/