From 0f66c96ae61a0c1d00bd8b214f85ae57caa9d813 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Nov 2006 10:13:17 +0000 Subject: [PATCH] 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 --- include/class_CopyPasteHandler.inc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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(); -- 2.30.2