From f4f802efe3cccd68f3a6b40eb8312bfd8e24d643 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 30 Mar 2007 12:34:53 +0000 Subject: Fixed #535 --- framework/Web/UI/WebControls/TRadioButton.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'framework/Web/UI/WebControls') diff --git a/framework/Web/UI/WebControls/TRadioButton.php b/framework/Web/UI/WebControls/TRadioButton.php index d35372b3..bab03f88 100644 --- a/framework/Web/UI/WebControls/TRadioButton.php +++ b/framework/Web/UI/WebControls/TRadioButton.php @@ -155,6 +155,16 @@ class TRadioButton extends TCheckBox $this->_uniqueGroupName=null; } + /** + * Add the group name as post data loader if group name is set. + */ + protected function addToPostDataLoader() + { + parent::addToPostDataLoader(); + $group = $this->getGroupName(); + if(!empty($group)) + $this->getPage()->registerPostDataLoader($this->getUniqueGroupName()); + } /** * @return string the name used to fetch radiobutton post data */ -- cgit v1.2.3