diff options
author | xue <> | 2006-05-31 01:47:08 +0000 |
---|---|---|
committer | xue <> | 2006-05-31 01:47:08 +0000 |
commit | 652bffab24bab354d9e3022b22866640f4fd4a0e (patch) | |
tree | 4af511b9928387713f68a3ab279e7e3dc2980021 /framework | |
parent | bf900e824f2c661df6380fd0360c13377da58bae (diff) |
Fixed a bug that newly created controls during postbacks may get their initial states reset during loadStateRecursive.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/TControl.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 66ac8fd5..36cc34dd 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -1522,11 +1522,6 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable $control->loadStateRecursive($state[$control->_id],$needViewState);
unset($state[$control->_id]);
}
- else
- {
- $s=array();
- $control->loadStateRecursive($s,$needViewState);
- }
}
}
}
@@ -1560,11 +1555,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable foreach($this->_rf[self::RF_CONTROLS] as $control)
{
if($control instanceof TControl)
- {
- $cs=&$control->saveStateRecursive($needViewState);
- if(!empty($cs))
- $state[$control->_id]=&$cs;
- }
+ $state[$control->_id]=&$control->saveStateRecursive($needViewState);
}
}
if($needViewState && !empty($this->_viewState))
|