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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2018-04-24 15:38:41 -03:00 committed by Martin Renvoize
parent 934ec2dcd3
commit 0f4f2c1fd8
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 4 additions and 4 deletions

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 %]