From 71c7b4641d574ca63fbac5ddbce0780ddecd335f Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Tue, 8 Oct 2013 13:41:29 +0200 Subject: [PATCH] Fix #16463: Sort order defaults to descending In view all page, when clicking on a column header to sort on it, the default sort order is now Ascending as expected. --- core/print_api.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/print_api.php b/core/print_api.php index 400a937a0d..693bebf597 100644 --- a/core/print_api.php +++ b/core/print_api.php @@ -1110,7 +1110,7 @@ function print_view_bug_sort_link( $p_string, $p_sort_field, $p_sort, $p_dir, $p } } else { # Otherwise always start with ASCending - $t_dir = 'ASC'; + $p_dir = 'ASC'; } $t_sort_field = rawurlencode( $p_sort_field ); @@ -1127,9 +1127,8 @@ function print_view_bug_sort_link( $p_string, $p_sort_field, $p_sort, $p_dir, $p } } else { # Otherwise always start with ASCending - $t_dir = 'ASC'; + $p_dir = 'ASC'; } - $t_sort_field = rawurlencode( $p_sort_field ); print_link( "view_all_set.php?sort=$t_sort_field&dir=$p_dir&type=2", $p_string ); } else {