From f18f3e606b2c1b8e7de3def314b79bb7f2c69830 Mon Sep 17 00:00:00 2001 From: "Christophe.Boulain" <> Date: Mon, 11 May 2009 08:40:37 +0000 Subject: Fixed Issue#150 --- framework/Web/UI/ActiveControls/TDropContainer.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'framework/Web/UI/ActiveControls/TDropContainer.php') 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); } } -- cgit v1.2.3