From: hickert Date: Wed, 22 Nov 2006 09:48:01 +0000 (+0000) Subject: Fixed copy & paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f50ef17975b60fd8c6394f8c6e7f1250bd95b1eb;p=gosa.git Fixed copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5188 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index 446c7f244..481241092 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -125,6 +125,11 @@ class CopyPasteHandler { */ if($this->cutCurrent){ + if(isset($_POST['PerformCopyPaste'])){ + $this->current->save(); + $this->dialogOpen =false; + $this->Clear(); + } if($this->current){ $smarty = get_smarty(); $smarty->assign("type","cut"); @@ -136,11 +141,6 @@ class CopyPasteHandler { return($smarty->fetch(get_template_path("copyPasteDialog.tpl",FALSE))); } - if(isset($_POST['PerformCopyPaste'])){ - $this->current->save(); - $this->dialogOpen =false; - $this->Clear(); - } /* Copy & paste */ }else{