summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-10-13 00:31:09 +0000
committerxue <>2006-10-13 00:31:09 +0000
commit3b827980972fa2bb1cfdf7aaf2dadd94012a2ab1 (patch)
treebc6fdf9330e12f76791fc16d277c8e2447a4883e
parent5abdafeb9ded0c1c41992f7b3758f1dc02255683 (diff)
Fixed #417.
-rw-r--r--HISTORY3
-rw-r--r--framework/Collections/TList.php2
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;
}
/**