From ffb5532d95e98a300a9afacf2b0480d9ce93246d Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 15 Dec 2005 03:56:06 +0000 Subject: Fixed a bug about dataBind() (dataBind() was not invoked on child controls) --- framework/Web/UI/TControl.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'framework') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index b50caeca..e84f2f5b 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -742,12 +742,12 @@ class TControl extends TComponent $this->setSubProperty($property,$this->evaluateExpression($expression)); if($raiseDataBindingEvent) $this->onDataBinding(null); - if(isset($this->_rf[self::RF_CONTROLS])) - { - foreach($this->_rf[self::RF_CONTROLS] as $control) - if($control instanceof TControl) - $control->dataBind($raiseDataBindingEvent); - } + } + if(isset($this->_rf[self::RF_CONTROLS])) + { + foreach($this->_rf[self::RF_CONTROLS] as $control) + if($control instanceof TControl) + $control->dataBind($raiseDataBindingEvent); } } -- cgit v1.2.3