Bugzilla – Attachment 124855 Details for
Bug 29010
Weight input pattern wrong
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29010: fix pattern in search_field.weight
Bug-29010-fix-pattern-in-searchfieldweight.patch (text/plain), 1.79 KB, created by
Thomas Klausner
on 2021-09-14 09:19:31 UTC
(
hide
)
Description:
Bug 29010: fix pattern in search_field.weight
Filename:
MIME Type:
Creator:
Thomas Klausner
Created:
2021-09-14 09:19:31 UTC
Size:
1.79 KB
patch
obsolete
>From 3bb45e76742fc8d63e9f16d1e50235bff4d5fa33 Mon Sep 17 00:00:00 2001 >From: Thomas Klausner <domm@plix.at> >Date: Tue, 14 Sep 2021 11:13:11 +0200 >Subject: [PATCH] Bug 29010: fix pattern in search_field.weight >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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. This patch fixes the pattern >to accept NUMERIC(ish) values > >Sponsored-by: Steiermärkische Landesbibliothek >--- > .../en/modules/admin/searchengine/elasticsearch/mappings.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt >index e43ce683f9..95dd06719f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt >@@ -214,7 +214,7 @@ a.add, a.delete { > </td> > <td data-order="[% search_field.weight | html %]"> > [% IF search_field.mapped_biblios %] >- <input type="text" inputmode="numeric" pattern="[0-9]*" name="search_field_weight" value="[% search_field.weight | html %]" /> >+ <input type="text" inputmode="numeric" pattern="[0-9\.]*" name="search_field_weight" value="[% search_field.weight | html %]" /> > [% ELSE %] > <input type="text" name="search_field_weight" value=""> > [% END %] >-- >2.25.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 29010
:
124855
|
126303
|
127881
|
127882