From ad493cf393192043dc64e7bc93b381a78032cb0d Mon Sep 17 00:00:00 2001 From: tof <> Date: Fri, 14 Mar 2008 18:06:07 +0000 Subject: Fixed #669 --- framework/Web/UI/ActiveControls/TActivePanel.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/ActiveControls/TActivePanel.php b/framework/Web/UI/ActiveControls/TActivePanel.php index 6f5c87dd..5885155d 100644 --- a/framework/Web/UI/ActiveControls/TActivePanel.php +++ b/framework/Web/UI/ActiveControls/TActivePanel.php @@ -74,7 +74,17 @@ class TActivePanel extends TPanel implements IActiveControl } else { - $this->getPage()->getAdapter()->registerControlToRender($this,$writer); + $this->getPage()->getAdapter()->registerControlToRender($this,$writer); + if ($this->getHasControls()) + { + // If we update a TActivePanel on callback, + // We shouldn't update all childs, because the whole content will be replaced by + // the parent + foreach ($this->findControlsByType('IActiveControl', false) as $control) + { + $control->getActiveControl()->setEnableUpdate(false); + } + } } } } -- cgit v1.2.3