From 3b827980972fa2bb1cfdf7aaf2dadd94012a2ab1 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 13 Oct 2006 00:31:09 +0000 Subject: Fixed #417. --- HISTORY | 3 ++- framework/Collections/TList.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 231b73bb..64017137 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,7 @@ Version 3.0.5 October 8, 2006 =============================== -BUG: Ticket#409 - Multiple page services will mess up page caching +BUG: Ticket#409 - Multiple page services will mess up page caching (Qiang) +BUG: Ticket#417 - SelectedIndex in template incorrect caused by bug in TList (Qiang) CHG: Ticket#358 - TFileUpload::saveAs() now returns false instead of exception when error (Qiang) ENH: Ticket#361 - Introduced include template tag that supports including external templates (Qiang) ENH: Ticket#366 - white spaces are now allowed around attribute names in template (Qiang) diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php index f22d6e7b..e646e203 100644 --- a/framework/Collections/TList.php +++ b/framework/Collections/TList.php @@ -134,7 +134,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess,Countabl public function add($item) { $this->insertAt($this->_c,$item); - return $this->_c; + return $this->_c-1; } /** -- cgit v1.2.3