summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rwxr-xr-xframework/Web/UI/ActiveControls/TDropContainer.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/framework/Web/UI/ActiveControls/TDropContainer.php b/framework/Web/UI/ActiveControls/TDropContainer.php
index 5d090d95..75a80625 100755
--- a/framework/Web/UI/ActiveControls/TDropContainer.php
+++ b/framework/Web/UI/ActiveControls/TDropContainer.php
@@ -123,12 +123,8 @@ class TDropContainer extends TPanel implements IActiveControl, ICallbackEventHan
{
// Find the control
// Warning, this will not work if you have a '_' in your control Id !
- $control=$this->getPage();
- $namingContainers=explode(TControl::CLIENT_ID_SEPARATOR, $dropControlId);
- foreach ($namingContainers as $nc)
- {
- $control=$control->findControl($nc);
- }
+ $dropControlId=str_replace(TControl::CLIENT_ID_SEPARATOR,TControl::ID_SEPARATOR,$dropControlId);
+ $control=$this->getPage()->findControl($dropControlId);
$this->raiseEvent('OnDrop', $this, new TDropContainerEventParameter ($control));
}
@@ -196,7 +192,7 @@ class TDropContainer extends TPanel implements IActiveControl, ICallbackEventHan
if ($this->_container===null)
{
$this->_container=Prado::CreateComponent('System.Web.UI.ActiveControls.TActivePanel');
- $this->_container->setId($this->getId().'_content');
+ $this->_container->setId($this->getId(false).'_content');
parent::getControls()->add($this->_container);
}
}