diff options
Diffstat (limited to 'framework/Web')
-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);
|