From 6d06340cda5e4c74e325740e2f30510f9b619888 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 16 Oct 2020 16:13:32 +0000 Subject: [PATCH] Bug 19482: (follow-up) Don't set readonly as a variable, use conditionals --- .../admin/searchengine/elasticsearch/mappings.tt | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) 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 ed2e5229a1..8eb5b9675b 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 @@ -183,19 +183,23 @@ a.add, a.delete { [% FOREACH search_field IN all_search_fields %] - [% IF search_field.mandatory %] - [% SET is_readonly = "readonly" %] - [% ELSE %] - [% SET is_readonly = "" %] - [% END %] - + [% IF search_field.mandatory %] + + [% ELSE %] + + [% END %] - + [% IF search_field.mandatory %] + + [% ELSE %] + + [% END %] + - [% IF is_readonly %] + [% IF search_field.mandatory %]