From b181cd60a8fff5a94179f66fa1165952ed170a95 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 22 Apr 2006 12:51:57 +0000 Subject: Modified default value rendering for TCheckBox. --- 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