[aur-dev] [PATCH] Fix sorting order when clicking table headings

Lukas Fleischer lfleischer at archlinux.org
Tue Nov 7 20:36:49 UTC 2017


A bug introduced in commit 7d7e079 (Hide the table sorting links on the
dashboard, 2017-02-04) resulted in multiple clicks on a table heading in
the package search results table no longer having any effect, instead of
changing the sorting order. Fix this by removing erroneous spaces from
the GET parameters in the search URL.

Fixes FS#56261.

Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
---
 web/template/pkg_search_results.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php
index 7f92685..d7512b1 100644
--- a/web/template/pkg_search_results.php
+++ b/web/template/pkg_search_results.php
@@ -3,7 +3,7 @@ if ($show_headers) {
 	$fmtth = function($title, $sb=false, $so=false, $hint=false) {
 		echo '<th>';
 		if ($sb) {
-			echo '<a href="?' . mkurl('SB=' . $sb . '&SO = ' . $so) . '">' . $title . '</a>';
+			echo '<a href="?' . mkurl('SB=' . $sb . '&SO=' . $so) . '">' . $title . '</a>';
 		} else {
 			echo $title;
 		}
-- 
2.15.0


More information about the aur-dev mailing list