summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/UI/TControl.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index b6163c03..652d89fe 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7,6 +7,7 @@ ENH: TListControl.SelectedValues and SelectedIndices can now be set before datab
ENH: Upgrade Scriptaculous javascript library to 1.6.2 (Wei)
CHG: Unify all client-side javascript event handler syntax. (Wei)
CHG: Added more conditions in the requirement checker (Qiang)
+CHG: TControl::findControlsByType() now only returns objects of the specified type (Qiang)
Version 3.0.3 August 6, 2006
============================
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php
index 9c3413bc..d13b94cf 100644
--- a/framework/Web/UI/TControl.php
+++ b/framework/Web/UI/TControl.php
@@ -940,7 +940,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable
{
foreach($this->_rf[self::RF_CONTROLS] as $control)
{
- if($control instanceof $type)
+ if(is_object($control) && get_class($control)===$type)
$controls[]=$control;
if(($control instanceof TControl) && $control->getHasControls())
$controls=array_merge($controls,$control->findControlsByType($type));