X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FPrefs%2FSearchOptions.html;h=e7ee2815f13b2820b39ff21bfe7c3136d00a9fc9;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=029e13f21a74ea251f739d580a7aa78f3ee3b25b;hpb=45d35d5739d05e602bc317739485693e0e9ff0b5;p=freeside.git diff --git a/rt/share/html/Prefs/SearchOptions.html b/rt/share/html/Prefs/SearchOptions.html index 029e13f21..e7ee2815f 100644 --- a/rt/share/html/Prefs/SearchOptions.html +++ b/rt/share/html/Prefs/SearchOptions.html @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -86,8 +86,8 @@ if ($ARGS{'SavePreferences'}) { my $prefs = $session{'CurrentUser'}->UserObj->Preferences("SearchDisplay") || {}; $Format ||= $prefs->{'Format'}; -$Order ||= ($prefs->{'Order'} || 'ASC'); -$OrderBy ||= ($prefs->{'OrderBy'} || 'id'); +$Order ||= ($prefs->{'Order'} || RT->Config->Get('DefaultSearchResultOrder')); +$OrderBy ||= ($prefs->{'OrderBy'} || RT->Config->Get('DefaultSearchResultOrderBy')); ($RowsPerPage = defined( $prefs->{'RowsPerPage'} ) ? $prefs->{'RowsPerPage'} : 50) unless defined ($RowsPerPage); my ( $AvailableColumns, $CurrentFormat );