From f2bc00aaa3388e426892b882ebc8fc24fbc4e6f6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 24 Apr 2018 15:38:41 -0300 Subject: [PATCH] Bug 20652: Fix result sorting after search on limit only 1 chomp was missing, spaces were replaced with %20 This patch adds extra chomps, but it does not hurt Test plan: Advanced Search Choose an Item type (do not enter any other search limits) Search Click on Sort (it doesn't appear to matter what you sort on) --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index 4463b66ea3..bb294cd92e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -145,12 +145,12 @@ [% IF ( searchdesc ) %] [% BLOCK sort_search_query ~%] - [% FOREACH QUERY_INPUT IN QUERY_INPUTS ~%] + [%~ FOREACH QUERY_INPUT IN QUERY_INPUTS ~%] &[% QUERY_INPUT.input_name |html %]=[% QUERY_INPUT.input_value |html %] - [%~ END %] - [% FOREACH LIMIT_INPUT IN LIMIT_INPUTS ~%] + [%~ END ~%] + [%~ FOREACH LIMIT_INPUT IN LIMIT_INPUTS ~%] &[% LIMIT_INPUT.input_name |html %]=[% LIMIT_INPUT.input_value |html %] - [%~ END %] + [%~ END ~%] [%~ END %] [% END %] -- 2.11.0