From 8317bdcef2734d666a1ecc75c0a1c9a9a3b0e794 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 24 Jan 2006 14:44:01 +0000 Subject: Fixed an issue about TCheckBox's value attribute. --- framework/Web/UI/WebControls/TCheckBox.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI/WebControls') 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; } /** -- cgit v1.2.3