From 72a75d7d0f5681df3fd98c684ab6f22baefb365c Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 22 Apr 2006 12:53:22 +0000 Subject: Merge from 3.0 branch till 956. --- framework/Web/UI/WebControls/TRadioButton.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'framework/Web/UI/WebControls/TRadioButton.php') diff --git a/framework/Web/UI/WebControls/TRadioButton.php b/framework/Web/UI/WebControls/TRadioButton.php index dc5320b6..9a523b55 100644 --- a/framework/Web/UI/WebControls/TRadioButton.php +++ b/framework/Web/UI/WebControls/TRadioButton.php @@ -101,6 +101,14 @@ class TRadioButton extends TCheckBox $this->setViewState('GroupName',$value,''); } + protected function getValueAttribute() + { + if(($value=parent::getValueAttribute())==='') + return $this->getUniqueID(); + else + return $value; + } + /** * @return string the name used to fetch radiobutton post data */ -- cgit v1.2.3