summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-12-01 12:37:58 +0000
committerxue <>2006-12-01 12:37:58 +0000
commit5975e2c0f7164ae445242aba0db4793898dc16b6 (patch)
treef172f578a60ad1837f207a5bdf75df29ffcd3951
parent17f49a9bc71d88c9b3e2f31a161f3689c136ac16 (diff)
merge from 3.0 branch till 1533.
-rw-r--r--framework/Web/UI/WebControls/TDataBoundControl.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/Web/UI/WebControls/TDataBoundControl.php b/framework/Web/UI/WebControls/TDataBoundControl.php
index 79175288..6e1d1003 100644
--- a/framework/Web/UI/WebControls/TDataBoundControl.php
+++ b/framework/Web/UI/WebControls/TDataBoundControl.php
@@ -337,7 +337,10 @@ abstract class TDataBoundControl extends TWebControl
$ds->setDataSource($data);
$this->setViewState('PageCount',$ds->getPageCount());
if($ds->getCurrentPageIndex()>=$ds->getPageCount())
+ {
$ds->setCurrentPageIndex($ds->getPageCount()-1);
+ $this->setCurrentPageIndex($ds->getCurrentPageIndex());
+ }
$this->performDataBinding($ds);
}
else