summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-01-24 14:44:01 +0000
committerxue <>2006-01-24 14:44:01 +0000
commit8317bdcef2734d666a1ecc75c0a1c9a9a3b0e794 (patch)
tree2ed95317ec5cf53f4bae700cbf6cf41ce425f074 /framework
parentc87a1568925872634614d1cc12a79a2e9cc5a848 (diff)
Fixed an issue about TCheckBox's value attribute.
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/WebControls/TCheckBox.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php
index 77145d48..5d3779b9 100644
--- a/framework/Web/UI/WebControls/TCheckBox.php
+++ b/framework/Web/UI/WebControls/TCheckBox.php
@@ -313,12 +313,12 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl
{
$attributes=$this->getViewState('InputAttributes',null);
if($attributes && $attributes->contains('value'))
- {
$value=$attributes->itemAt('value');
- return $value===''?$this->getUniqueID():$value;
- }
+ else if($this->hasAttribute('value'))
+ $value=$this->getAttribute('value');
else
- return $this->getUniqueID();
+ $value='';
+ return $value===''?$this->getUniqueID():$value;
}
/**