summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TRadioButton.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TRadioButton.php')
-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;
}