From: hickert Date: Wed, 22 Nov 2006 10:13:17 +0000 (+0000) Subject: use check() before saving also for cutted objects. Cut & paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0f66c96ae61a0c1d00bd8b214f85ae57caa9d813;p=gosa.git use check() before saving also for cutted objects. Cut & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5189 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index 481241092..334bd988d 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -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();