summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2007-09-04 20:30:15 +0000
committerxue <>2007-09-04 20:30:15 +0000
commit78af8b5719980ba12c391e20ecabdf3703452b05 (patch)
treebc95f01c7d5f1a52f05277f613b156627f5f608d
parent44378671674217cf0cb417106b00e7dfc2ed780e (diff)
fixed #689.
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/UI/WebControls/TRangeValidator.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 61c4480e..d0b254b2 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8,6 +8,7 @@ BUG: Ticket#661 - ActiveRecord PostgreSQL 7.3.2 Support doesn't work (Qiang)
BUG: Ticket#662 - Ensure TForm to properly encode the ampersand in action URL (Qiang)
BUG: Ticket#666 - TActiveRecord::deleteAll() method always requires a criteria or null parameter (Qiang)
BUG: Ticket#670 - TDatePicker: Year Issue (Christophe)
+BUG: Ticket#689 - TRangeValidator: Problem in clientscript when MaxValue=<%= 0 %> (Qiang)
ENH: Ticket#577 - Added image button support for TPager (Qiang)
ENH: Ticket#623 - TMemCache to support multiple servers (Carl)
ENH: Ticket#664 - Added support to styling thead, tbody, tfoot of TDataGrid (Qiang)
diff --git a/framework/Web/UI/WebControls/TRangeValidator.php b/framework/Web/UI/WebControls/TRangeValidator.php
index 369b887b..36dbcdca 100644
--- a/framework/Web/UI/WebControls/TRangeValidator.php
+++ b/framework/Web/UI/WebControls/TRangeValidator.php
@@ -76,7 +76,7 @@ class TRangeValidator extends TBaseValidator
*/
public function setMinValue($value)
{
- $this->setViewState('MinValue',$value,'');
+ $this->setViewState('MinValue',TPropertyValue::ensureString($value),'');
}
/**
@@ -93,7 +93,7 @@ class TRangeValidator extends TBaseValidator
*/
public function setMaxValue($value)
{
- $this->setViewState('MaxValue',$value,'');
+ $this->setViewState('MaxValue',TPropertyValue::ensureString($value),'');
}
/**