summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/WebControls/TDataGrid.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php
index 57d00ac8..753ec351 100644
--- a/framework/Web/UI/WebControls/TDataGrid.php
+++ b/framework/Web/UI/WebControls/TDataGrid.php
@@ -1060,7 +1060,8 @@ class TDataGrid extends TBaseDataList implements INamingContainer
$endPageIndex=$buttonCount;
if($pageIndex>$endPageIndex)
{
- $startPageIndex=((int)($pageIndex/$maxButtonCount))*$maxButtonCount+1;
+ //$startPageIndex=((int)($pageIndex/$maxButtonCount))*$maxButtonCount+1;
+ $startPageIndex=$pageIndex;
if(($endPageIndex=$startPageIndex+$maxButtonCount-1)>$pageCount)
$endPageIndex=$pageCount;
if($endPageIndex-$startPageIndex+1<$maxButtonCount)