Code

use check() before saving also for cutted objects. Cut & paste
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Nov 2006 10:13:17 +0000 (10:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Nov 2006 10:13:17 +0000 (10:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5189 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_CopyPasteHandler.inc

index 481241092c234cf20d1a9d2ae3cde5b94e437ed9..334bd988dc6e3c55e51552274d5b63439a1b3155 100644 (file)
@@ -126,9 +126,16 @@ class CopyPasteHandler {
     if($this->cutCurrent){
 
       if(isset($_POST['PerformCopyPaste'])){
-        $this->current->save();
-        $this->dialogOpen =false;
-        $this->Clear();
+        $msgs = $this->check();        
+        if(count ($msgs) ){
+          foreach( $msgs as $msg){
+            print_red($msg);
+          }
+        }else{
+          $this->current->save();
+          $this->dialogOpen =false;
+          $this->Clear();
+        }
       }
       if($this->current){
         $smarty = get_smarty();