From fc12fe9db0a901d67f4c0ce136d8e3e57e40e1c3 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 30 Apr 2024 08:51:42 +0000 Subject: [PATCH] Bug 35138: Fix typo in error messages Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js b/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js index bd01ad58ea..ad51115d68 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js +++ b/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js @@ -149,7 +149,7 @@ $(document).ready(function () { var search_field_name = $(line).find('input[data-id="search_field_name"]').val(); let already_exists = dt.data().filter((row, idx) => row[0]['@data-order'] === search_field_name); if ( already_exists.length ) { - alert(__("SearchField '%s' already exist".format(search_field_name))); + alert(__("Search field '%s' already exists".format(search_field_name))); return; } if (search_field_name.length > 0) { @@ -171,7 +171,7 @@ $(document).ready(function () { let dt_data = dt.data(); let already_exists = dt_data.filter((row, idx) => row[1] === search_field_name); if ( already_exists.length ) { - alert(__("Facet '%s' already exist".format(search_field_name))); + alert(__("Facet '%s' already exists".format(search_field_name))); return; } if (search_field_name.length > 0) { -- 2.39.5