diff options
author | Christophe.Boulain <> | 2009-05-11 08:40:37 +0000 |
---|---|---|
committer | Christophe.Boulain <> | 2009-05-11 08:40:37 +0000 |
commit | f18f3e606b2c1b8e7de3def314b79bb7f2c69830 (patch) | |
tree | cb7d508dda08fa858f857ce64880760501897794 /framework/Web/UI/ActiveControls | |
parent | 6ef4cdbaece53185ff3924b26461fd1bffd8127a (diff) |
Fixed Issue#150
Diffstat (limited to 'framework/Web/UI/ActiveControls')
-rwxr-xr-x | framework/Web/UI/ActiveControls/TDropContainer.php | 10 |
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); } } |