diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2016-02-25 17:01:17 +0100 |
---|---|---|
committer | Fabio Bas <ctrlaltca@gmail.com> | 2016-02-25 17:01:17 +0100 |
commit | 562e322fe595b4d3307ff28a96c8c5fbcc284010 (patch) | |
tree | 4b16f146c8ee931dc084758798cfdb32f64b914b /framework/Web/UI/WebControls/TTextBox.php | |
parent | 294682fb45014ba04ce1b193af712208b15a6151 (diff) |
Applied some misc optimizations to class serialization
Avoid saving in the page state the values of class variables if they’re
still the default.
Reduces page state size, based on the work initiated in
8dc9d4f7d49bcbeaf4998baf74a4f4459967c1f0
Diffstat (limited to 'framework/Web/UI/WebControls/TTextBox.php')
-rw-r--r-- | framework/Web/UI/WebControls/TTextBox.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TTextBox.php b/framework/Web/UI/WebControls/TTextBox.php index f3a0c166..cd7b1c57 100644 --- a/framework/Web/UI/WebControls/TTextBox.php +++ b/framework/Web/UI/WebControls/TTextBox.php @@ -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; } |