[open-ils-commits] r9033 - trunk/Open-ILS/src/perlmods/OpenILS/WWW
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Mar 15 00:07:38 EDT 2008
Author: miker
Date: 2008-03-14 23:33:56 -0400 (Fri, 14 Mar 2008)
New Revision: 9033
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm
Log:
allow url-based sort/dir to work
Modified: trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm 2008-03-15 01:29:21 UTC (rev 9032)
+++ trunk/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm 2008-03-15 03:33:56 UTC (rev 9033)
@@ -959,8 +959,10 @@
$lang = $cgi->param('searchLang') if $cgi->param('searchLang');
$lang = '' if ($lang eq '*');
- $sort = $cgi->param('searchSort') || '';
- $sortdir = $cgi->param('searchSortDir') || '';
+ $sort = $cgi->param('searchSort') if $cgi->param('searchSort');
+ $sort ||= '';
+ $sortdir = $cgi->param('searchSortDir') if $cgi->param('searchSortDir');
+ $sortdir ||= '';
$terms .= " " if ($terms);
$terms .= $cgi->param('searchTerms') if $cgi->param('searchTerms');
More information about the open-ils-commits
mailing list