Code

Updated phoneAccount.
[gosa.git] / include / class_CopyPasteHandler.inc
index 35b1937ef671f280d7ee95943da046ddce341c21..aba5e3208a3e1976722044ce7c416f4f8b51b2f1 100644 (file)
@@ -124,10 +124,18 @@ class CopyPasteHandler {
     /* Cut & paste
      */
     if($this->cutCurrent){
-      $this->current->save();
-      $this->dialogOpen =false;
-      $this->Clear();
 
+      $msgs = $this->check();  
+      if(count ($msgs) ){
+        foreach( $msgs as $msg){
+          print_red($msg);
+        }
+        $this->dialogOpen =false;
+      }else{
+        $this->current->save();
+        $this->dialogOpen =false;
+        $this->Clear();
+      }
       /* Copy & paste
        */
     }else{