From 23a52b16a984756ce3783062843ffa8ee1407f7e Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 23 Nov 2009 14:30:59 +0000 Subject: [PATCH] Udpated copy & paste handling. - We've lost all modification in the paste dialog when we triggered a custom page reload. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14833 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_CopyPasteHandler.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_CopyPasteHandler.inc b/gosa-core/include/class_CopyPasteHandler.inc index 643633055..4d6fb1ddb 100644 --- a/gosa-core/include/class_CopyPasteHandler.inc +++ b/gosa-core/include/class_CopyPasteHandler.inc @@ -358,8 +358,11 @@ class CopyPasteHandler { /* Save edited entry and force loading new one */ - if(isset($_POST['PerformCopyPaste']) && $this->current){ + if(isset($this->current['object']) && method_exists($this->current['object'],"saveCopyDialog")) { $this->current['object']->saveCopyDialog(); + } + + if(isset($_POST['PerformCopyPaste']) && $this->current){ $msgs = $this->check(); /* Load next queue entry */ -- 2.30.2