diff options
author | xue <> | 2006-06-27 14:21:23 +0000 |
---|---|---|
committer | xue <> | 2006-06-27 14:21:23 +0000 |
commit | ae57f5fb591ecc01c9cb007c4517efa5c4ff9e72 (patch) | |
tree | 444debad2bb57a7b2e00cb8006aea4a0d96c9fa2 /framework | |
parent | 56466c36f4bbe5a1fee8d77642dc57b2366164e3 (diff) |
Fixed #239.
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Web/UI/WebControls/TMultiView.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/Web/UI/WebControls/TMultiView.php b/framework/Web/UI/WebControls/TMultiView.php index b6001f90..00c0ce93 100644 --- a/framework/Web/UI/WebControls/TMultiView.php +++ b/framework/Web/UI/WebControls/TMultiView.php @@ -144,7 +144,7 @@ class TMultiView extends TControl {
if($view->getActive())
return;
- $triggerEvent=($this->getControlStage()>=TControl::CS_STATE_LOADED || ($this->getPage() && !$this->getPage()->getIsPostBack()));
+ $triggerEvent=$triggerViewChangedEvent && ($this->getControlStage()>=TControl::CS_STATE_LOADED || ($this->getPage() && !$this->getPage()->getIsPostBack()));
foreach($this->getViews() as $v)
{
if($v===$view)
@@ -153,8 +153,7 @@ class TMultiView extends TControl if($triggerEvent)
{
$view->onActivate(null);
- if($triggerViewChangedEvent)
- $this->onActiveViewChanged(null);
+ $this->onActiveViewChanged(null);
}
}
else if($v->getActive())
|