summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2005-12-15 03:56:06 +0000
committerxue <>2005-12-15 03:56:06 +0000
commitffb5532d95e98a300a9afacf2b0480d9ce93246d (patch)
tree05cf5a1804b2ee16c8ed097d2efcd16f3b5f1e71 /framework
parent08b4ee312a10f6dd7ff57ee779cff6195bde0e81 (diff)
Fixed a bug about dataBind() (dataBind() was not invoked on child controls)
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/TControl.php12
1 files changed, 6 insertions, 6 deletions
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);
}
}