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)

Signed-off-by: Pierre-Luc Lapointe <pierreluc.lapointe@inLibro.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-04-24 15:38:41 -03:00 committed by Nick Clemens
parent 82a4f23ee3
commit 3b5599f00e

View file

@ -145,12 +145,12 @@
[% IF ( searchdesc ) %]
[% BLOCK sort_search_query ~%]
[% FOREACH QUERY_INPUT IN QUERY_INPUTS ~%]
[%~ FOREACH QUERY_INPUT IN QUERY_INPUTS ~%]
&amp;[% QUERY_INPUT.input_name |html %]=[% QUERY_INPUT.input_value |html %]
[%~ END %]
[% FOREACH LIMIT_INPUT IN LIMIT_INPUTS ~%]
[%~ END ~%]
[%~ FOREACH LIMIT_INPUT IN LIMIT_INPUTS ~%]
&amp;[% LIMIT_INPUT.input_name |html %]=[% LIMIT_INPUT.input_value |html %]
[%~ END %]
[%~ END ~%]
[%~ END %]
[% END %]