X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FPrefs%2FSearchOptions.html;h=ee8df0fd0673ecc03122cdd1d070fd0fe0875e3e;hp=aeb27863fe1cf718abcda18af488fc90b64e2df9;hb=7322f2afedcc2f427e997d1535a503613a83f088;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924 diff --git a/rt/share/html/Prefs/SearchOptions.html b/rt/share/html/Prefs/SearchOptions.html index aeb27863f..ee8df0fd0 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-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2016 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -46,10 +46,7 @@ %# %# END BPS TAGGED BLOCK }}} <& /Elements/Header, Title => loc("Ticketing Search Preferences") &> -<& /User/Elements/Tabs, - current_tab => "Prefs/SearchOptions.html", - Title => loc("Search Preferences") -&> +<& /Elements/Tabs &> <& /Elements/ListActions, actions => \@actions &>
@@ -67,7 +64,7 @@ <%INIT> my @actions; -# {{{ If we're saving search preferences, do that now +# If we're saving search preferences, do that now $Order = join '|', grep defined && /\S/, (ref $Order)? @{$Order}: $Order; $OrderBy = join '|', grep defined && /\S/, (ref $OrderBy)? @{$OrderBy}: $OrderBy; @@ -84,14 +81,13 @@ if ($ARGS{'SavePreferences'}) { push @actions, $ok ? loc("Preferences saved.") : $msg; } -# }}} # Read from user preferences 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 );