summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
authorxue <>2005-12-24 23:00:41 +0000
committerxue <>2005-12-24 23:00:41 +0000
commitdf3475eced66f7e8e63b231828587475ee3f32ca (patch)
treea80cce6532a1c606699704268065f1a9976aa23f /framework/Web/UI/WebControls
parent56b28c33fdee6169c9bfd77f4f9d8e9d349e0b7b (diff)
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r--framework/Web/UI/WebControls/TRadioButton.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/framework/Web/UI/WebControls/TRadioButton.php b/framework/Web/UI/WebControls/TRadioButton.php
index 78dc6549..85a28941 100644
--- a/framework/Web/UI/WebControls/TRadioButton.php
+++ b/framework/Web/UI/WebControls/TRadioButton.php
@@ -109,14 +109,16 @@ class TRadioButton extends TCheckBox
if($uniqueID!=='')
{
if(($pos=strrpos($uniqueID,TControl::ID_SEPARATOR))!==false)
- $this->_uniqueGroupName=substr($uniqueID,0,$pos+1).$groupName;
- else if($this->getNameContainer() instanceof TRadioButtonList)
- $this->_uniqueGroupName=substr($uniqueID,0,$pos);
- if(empty($this->_uniqueGroupName))
- $this->_uniqueGroupName=$uniqueID;
+ {
+ if($groupName!=='')
+ $groupName=substr($uniqueID,0,$pos+1).$groupName;
+ else if($this->getNamingContainer() instanceof TRadioButtonList)
+ $groupName=substr($uniqueID,0,$pos);
+ }
+ if($groupName==='')
+ $groupName=$uniqueID;
}
- else
- $this->_uniqueGroupName=$groupName;
+ $this->_uniqueGroupName=$groupName;
}
return $this->_uniqueGroupName;
}