diff options
Diffstat (limited to 'lib/prado/framework/Web/UI/WebControls/TTextBox.php')
-rw-r--r-- | lib/prado/framework/Web/UI/WebControls/TTextBox.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prado/framework/Web/UI/WebControls/TTextBox.php b/lib/prado/framework/Web/UI/WebControls/TTextBox.php index f3a0c16..2f3ea3e 100644 --- a/lib/prado/framework/Web/UI/WebControls/TTextBox.php +++ b/lib/prado/framework/Web/UI/WebControls/TTextBox.php @@ -4,7 +4,7 @@ * * @author Qiang Xue <qiang.xue@gmail.com> * @link https://github.com/pradosoft/prado - * @copyright Copyright © 2005-2015 The PRADO Group + * @copyright Copyright © 2005-2016 The PRADO Group * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT * @package System.Web.UI.WebControls */ @@ -478,7 +478,7 @@ class TTextBox extends TWebControl implements IPostBackDataHandler, IValidatable */ public function setText($value) { - $this->setViewState('Text',$value,''); + $this->setViewState('Text',TPropertyValue::ensureString($value),''); $this->_safeText = null; } |