summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-08-23 12:02:34 +0200
committerFabio Bas <ctrlaltca@gmail.com>2016-08-23 12:02:34 +0200
commitfbf22c25f8c3c41516797a576969ac1c8a9afb36 (patch)
tree5dcc983822e4fbc55918e4706403533fb9e386ab
parent5a6ea2db91e5fdad6f7799a7b797f7035ece259c (diff)
Fix #608
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/UI/TControl.php5
2 files changed, 2 insertions, 4 deletions
diff --git a/HISTORY b/HISTORY
index 95377b69..4d011600 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6,6 +6,7 @@ BUG: Issue #597 - TDatePicker::getDateFromPostData selected month issue (Sachat)
BUG: Issue #599 - Allowing translation message cache to be initialized (emkael)
BUG: Issue #604 - TActiveImageButton inside TJuiDialog javascript problem (ctrlaltca)
BUG: Issue #607 - TActiveFileUpload does not work inside TJuiDialog (ctrlaltca)
+BUG: Issue #608 - Fix retrieving value from viewstate (frkinta, ctrlaltca)
ENH: Issue #591 - Support for hyphenated attributes via <prop:*></prop:*> template syntax (emkael)
ENH: Issue #594 - Added ability to check for subcontrols using isset(), empty() (jojoinside)
ENH: Allow TStyle behaviors (LCSKJ)
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php
index 1b8a2138..caf0e0cb 100644
--- a/framework/Web/UI/TControl.php
+++ b/framework/Web/UI/TControl.php
@@ -795,10 +795,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable
if($this->_trackViewState)
{
unset($this->_tempState[$key]);
- if($value===$defaultValue)
- unset($this->_viewState[$key]);
- else
- $this->_viewState[$key]=$value;
+ $this->_viewState[$key]=$value;
}
else
{