From fcc4b6ed2ed082ed83611b7d65f4881a62a580e6 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 12 Jul 2006 17:05:43 +0000 Subject: Fixed TCheckBox.Value bug. --- HISTORY | 1 + framework/Web/UI/WebControls/TCheckBox.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 8a039986..ed9fa6b0 100644 --- a/HISTORY +++ b/HISTORY @@ -3,6 +3,7 @@ Version 3.0.3 August 6, 2006 BUG: Ticket#264 - Typos in some exception throw statements (Knut) BUG: Ticket#268 - THttpResponse.redirect() may fail for some browsers (Qiang) BUG: TDataGrid may complain getting ItemType on a non-object if the grid is not data-bound (Qiang) +BUG: TCheckBox.Value should be converted to string (Qiang) ENH: Ticket#220 - TClientScripts method to import custom javascript files (Wei) ENH: Ticket#225 - TRadioButton::getRadioButtonsInGroup() added (Wei) ENH: Ticket#223 - Use TRequiredFieldValidator for TRadioButtons with GroupName property (Wei) diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php index 1dc177cf..6ee67c16 100644 --- a/framework/Web/UI/WebControls/TCheckBox.php +++ b/framework/Web/UI/WebControls/TCheckBox.php @@ -143,7 +143,7 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl */ public function setValue($value) { - $this->setViewState('Value',$value,''); + $this->setViewState('Value',TPropertyValue::ensureString($value),''); } /** -- cgit v1.2.3