From 6477d21d4ccc7969cefe1e38cbc3c001bbcb7459 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 22 Aug 2007 14:00:27 +0000 Subject: Fixed #696. --- framework/Web/UI/WebControls/TTabPanel.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/TTabPanel.php b/framework/Web/UI/WebControls/TTabPanel.php index 86f322e8..394f7326 100644 --- a/framework/Web/UI/WebControls/TTabPanel.php +++ b/framework/Web/UI/WebControls/TTabPanel.php @@ -425,7 +425,10 @@ class TTabPanel extends TWebControl implements IPostBackDataHandler $options['NormalCssClass']=$this->getTabCssClass(); $viewIDs=array(); foreach($this->getViews() as $view) - $viewIDs[]=$view->getClientID(); + { + if($view->getVisible()) + $viewIDs[]=$view->getClientID(); + } $options['Views']='[\''.implode('\',\'',$viewIDs).'\']'; return $options; -- cgit v1.2.3