[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.7-97-g7293704

sartak at bestpractical.com sartak at bestpractical.com
Fri Jan 22 01:14:42 EST 2010


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

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

- Log -----------------------------------------------------------------
commit 72937046ef940873e07d6ac8771a1423a2084882
Author: Matt Zagrabelny <mzagrabe at d.umn.edu>
Date:   Fri Jan 22 01:13:06 2010 -0500

    Contributed patch to fix display-all-rows in Dashboards

diff --git a/share/html/Dashboards/Render.html b/share/html/Dashboards/Render.html
index 1893b53..ffc897b 100644
--- a/share/html/Dashboards/Render.html
+++ b/share/html/Dashboards/Render.html
@@ -111,7 +111,8 @@ for my $sub ($session{'CurrentUser'}->UserObj->Attributes->Named('Subscription')
 }
 
 # otherwise honor their search preferences.. otherwise 20 rows
-if (!$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;
 }

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


More information about the Rt-commit mailing list