From 99a6f39fa134879321a984be4d1b00f84687beee Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 10 Mar 2016 15:55:57 -0500 Subject: [PATCH] LP#1549505: fix handling of OPAC sort CGI parameter This patch ensures that the 'sort' parameter does not get duplicate when a global default sort order is set and a user switches from that to relevance to another order. Signed-off-by: Galen Charlton --- Open-ILS/src/templates/opac/parts/searchbar.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/searchbar.tt2 b/Open-ILS/src/templates/opac/parts/searchbar.tt2 index 64cae0d926..3c93b42f86 100644 --- a/Open-ILS/src/templates/opac/parts/searchbar.tt2 +++ b/Open-ILS/src/templates/opac/parts/searchbar.tt2 @@ -100,7 +100,7 @@ [% END %] [%- END %] - [% IF NOT CGI.param('sort') %] + [% IF NOT CGI.param('sort').defined AND ctx.default_sort %] [% END %] [% UNLESS took_care_of_form %][% END %] -- 2.11.0