[Rt-commit] r4803 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Thu Mar 23 07:18:53 EST 2006
Author: ruz
Date: Thu Mar 23 07:18:52 2006
New Revision: 4803
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/html/Search/Results.html
Log:
r2186 at cubic-pc: cubic | 2006-03-23 15:25:54 +0300
* add default format otherwise search results are empty if prefs has no format
Modified: rt/branches/3.7-EXPERIMENTAL/html/Search/Results.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/Search/Results.html (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/Search/Results.html Thu Mar 23 07:18:52 2006
@@ -93,7 +93,7 @@
# These variables are what define a search_hash; this is also
# where we give sane defaults.
-$Format ||= $prefs->{'Format'};
+$Format ||= $prefs->{'Format'} || RT->Config->Get('DefaultSearchResultFormat');
$Order ||= $prefs->{'Order'} || 'ASC';
$OrderBy ||= $prefs->{'OrderBy'} || 'id';
More information about the Rt-commit
mailing list