diff options
author | xue <> | 2006-02-20 06:23:38 +0000 |
---|---|---|
committer | xue <> | 2006-02-20 06:23:38 +0000 |
commit | 3dcb3c4188c8d5836a2db0847d2fc43bc7e7e4d8 (patch) | |
tree | 2c3d8ec78c40f314061225b76b41a126fd5fb098 /framework/Web/UI/WebControls/TListControl.php | |
parent | d830818a513a255e2ae047e7d0057238aa462f3d (diff) |
Cleaned up TForm and THead.
Diffstat (limited to 'framework/Web/UI/WebControls/TListControl.php')
-rw-r--r-- | framework/Web/UI/WebControls/TListControl.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php index 3c1cd547..be0abd38 100644 --- a/framework/Web/UI/WebControls/TListControl.php +++ b/framework/Web/UI/WebControls/TListControl.php @@ -195,7 +195,7 @@ abstract class TListControl extends TDataBoundControl // so we make them be effective now
if($this->_cachedSelectedValue!==null)
{
- $index=$items->findIndexByValue($value);
+ $index=$items->findIndexByValue($this->_cachedSelectedValue);
if($index===-1 || ($this->_cachedSelectedIndex!==-1 && $this->_cachedSelectedIndex!==$index))
throw new TInvalidDataValueException('listcontrol_selection_invalid');
$this->setSelectedIndex($index);
|