summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorwei <>2007-03-30 12:34:53 +0000
committerwei <>2007-03-30 12:34:53 +0000
commitf4f802efe3cccd68f3a6b40eb8312bfd8e24d643 (patch)
treee36be1798cf34e221a3897c98eceadf1195c4799 /framework
parentfbfbdcb233e94b7fed6f8ae209eb90d79aa33f7e (diff)
Fixed #535
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/ActiveControls/TActiveRadioButton.php11
-rw-r--r--framework/Web/UI/WebControls/TRadioButton.php10
2 files changed, 10 insertions, 11 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveRadioButton.php b/framework/Web/UI/ActiveControls/TActiveRadioButton.php
index 16a91688..504a52da 100644
--- a/framework/Web/UI/ActiveControls/TActiveRadioButton.php
+++ b/framework/Web/UI/ActiveControls/TActiveRadioButton.php
@@ -110,17 +110,6 @@ class TActiveRadioButton extends TRadioButton implements IActiveControl, ICallba
}
/**
- * 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($group);
- }
-
- /**
* Override parent implementation, no javascript is rendered here instead
* the javascript required for active control is registered in {@link addAttributesToRender}.
*/
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
@@ -156,6 +156,16 @@ class TRadioButton extends TCheckBox
}
/**
+ * 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
*/
public function getUniqueGroupName()