[Rt-commit] rt branch, 3.999-trunk, updated. 392cb7ecc2d11c4d167f356e9b4b4575dd96ed0c
? sunnavy
sunnavy at bestpractical.com
Tue Apr 6 04:31:23 EDT 2010
The branch, 3.999-trunk has been updated
via 392cb7ecc2d11c4d167f356e9b4b4575dd96ed0c (commit)
from 327f511ad9ed100aa1efa43562321ec9d3f4a0ea (commit)
Summary of changes:
share/html/Search/Results.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 392cb7ecc2d11c4d167f356e9b4b4575dd96ed0c
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Apr 6 16:31:42 2010 +0800
set page to 1 if not defined
diff --git a/share/html/Search/Results.html b/share/html/Search/Results.html
index 9449514..23e83d6 100755
--- a/share/html/Search/Results.html
+++ b/share/html/Search/Results.html
@@ -88,13 +88,13 @@
<%INIT>
# Read from user preferences
-
my $prefs = Jifty->web->current_user->user_object->preferences("SearchDisplay") || {};
# These variables are what define a search_hash; this is also
# where we give sane defaults.
$format ||= $prefs->{'format'} || RT->config->get('default_search_result_format');
$order ||= $prefs->{'order'} || 'ASC';
$order_by ||= $prefs->{'order_by'} || 'id';
+$page ||= 1;
# Some forms pass in "rows_per_page" rather than "rows"
# We call it rows_per_page everywhere else.
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list