diff options
author | xue <> | 2006-02-01 19:26:46 +0000 |
---|---|---|
committer | xue <> | 2006-02-01 19:26:46 +0000 |
commit | d602f32bf108ccf58df7880227dc64d2cfa33e13 (patch) | |
tree | 3fa3d93ec96b3c9e88a004cb6ed2c67e184d4d12 /framework | |
parent | a7edca99c188c574125785c87198606527981d01 (diff) |
Modified TDataList demo 2 to make it more demonstrative.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/WebControls/TDataList.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TDataList.php b/framework/Web/UI/WebControls/TDataList.php index 95919372..f5292220 100644 --- a/framework/Web/UI/WebControls/TDataList.php +++ b/framework/Web/UI/WebControls/TDataList.php @@ -447,7 +447,7 @@ class TDataList extends TBaseDataList implements INamingContainer, IRepeatInfoUs {
if($this->getDataKeyField()==='')
throw new TInvalidOperationException('datalist_datakeyfield_required');
- $index=$this->getSelectedIndex();
+ $index=$this->getSelectedItemIndex();
$dataKeys=$this->getDataKeys();
if($index>=0 && $index<$dataKeys->getCount())
return $dataKeys->itemAt($index);
|