Changeset 1531
- Timestamp:
- 11/30/2006 08:50:44 PM (23 months ago)
- Location:
- branches/3.0
- Files:
-
- 2 modified
-
HISTORY (modified) (1 diff)
-
framework/Web/UI/WebControls/TDataBoundControl.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/HISTORY
r1529 r1531 14 14 CHG: TRepeater does not render <span> anymore for empty item template (Qiang) 15 15 CHG: THttpRequest.constructUrl() now encodes ampersand by default (Qiang) 16 CHG: TDataBoundControl will not throw exception if CurrentPageIndex is out of range (Qiang) 16 17 17 18 Version 3.0.5 October 23, 2006 -
branches/3.0/framework/Web/UI/WebControls/TDataBoundControl.php
r1397 r1531 219 219 { 220 220 if(($value=TPropertyValue::ensureInteger($value))<0) 221 throw new TInvalidDataValueException('databoundcontrol_currentpageindex_invalid',get_class($this));221 $value=0; 222 222 $this->setViewState('CurrentPageIndex',$value,0); 223 223 } … … 338 338 $this->setViewState('PageCount',$ds->getPageCount()); 339 339 if($ds->getCurrentPageIndex()>=$ds->getPageCount()) 340 throw new TInvalidDataValueException('databoundcontrol_currentpageindex_invalid',get_class($this));340 $ds->setCurrentPageIndex($ds->getPageCount()-1); 341 341 $this->performDataBinding($ds); 342 342 }
