X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_CopyPasteHandler.inc;h=334bd988dc6e3c55e51552274d5b63439a1b3155;hb=67f6e5cf3fb83f779420c6b9a1451b9f7b6b7c65;hp=446c7f244a0633b70108b4b235ec0ad7aff49183;hpb=dd2481ac55bb185222d9c17610d65e2e5931fd62;p=gosa.git diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index 446c7f244..334bd988d 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -125,6 +125,18 @@ class CopyPasteHandler { */ if($this->cutCurrent){ + if(isset($_POST['PerformCopyPaste'])){ + $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(); $smarty->assign("type","cut"); @@ -136,11 +148,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{