[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-98-gb89e52f

sartak at bestpractical.com sartak at bestpractical.com
Fri Jan 22 01:36:24 EST 2010


The branch, 3.8-trunk has been updated
       via  b89e52f2964a1ca2dbceb236b107afcbb4806ef7 (commit)
      from  72937046ef940873e07d6ac8771a1423a2084882 (commit)

Summary of changes:
 share/html/Dashboards/Render.html |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit b89e52f2964a1ca2dbceb236b107afcbb4806ef7
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Fri Jan 22 01:33:46 2010 -0500

    Change default to 50 which is the hardcoded system default
    
        The reason for this change is that when your RowsPerPage search
        option is unset, it appears that the default is 50, rather than 20.
        And there also appears to be no system-wide default for RowsPerPage,
        so this is the next best thing.

diff --git a/share/html/Dashboards/Render.html b/share/html/Dashboards/Render.html
index ffc897b..1ae9507 100644
--- a/share/html/Dashboards/Render.html
+++ b/share/html/Dashboards/Render.html
@@ -110,11 +110,11 @@ for my $sub ($session{'CurrentUser'}->UserObj->Attributes->Named('Subscription')
     last;
 }
 
-# otherwise honor their search preferences.. otherwise 20 rows
+# otherwise honor their search preferences.. otherwise 50 rows
 # $rows == 0 means unlimited, which we don't want to ignore from above
 if (!$rows and ($rows != 0)) {
     my $prefs = $session{'CurrentUser'}->UserObj->Preferences("SearchDisplay") || {};
-    $rows = defined($prefs->{'RowsPerPage'}) ? $prefs->{'RowsPerPage'} : 20;
+    $rows = defined($prefs->{'RowsPerPage'}) ? $prefs->{'RowsPerPage'} : 50;
 }
 
 my $title = loc 'Dashboard [_1]', $DashboardObj->Name;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list