From ae57f5fb591ecc01c9cb007c4517efa5c4ff9e72 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 27 Jun 2006 14:21:23 +0000 Subject: Fixed #239. --- framework/Web/UI/WebControls/TMultiView.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'framework') 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()) -- cgit v1.2.3