Code

Fixed copy & paste
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Nov 2006 09:48:01 +0000 (09:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Nov 2006 09:48:01 +0000 (09:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5188 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_CopyPasteHandler.inc

index 446c7f244a0633b70108b4b235ec0ad7aff49183..481241092c234cf20d1a9d2ae3cde5b94e437ed9 100644 (file)
@@ -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{