From 4ebac9cc4182bb5425873aebd91f2764ef57338f Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 12 Jun 2007 05:21:33 +0000 Subject: [PATCH] Updated Copy & Paste for users git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6563 594d385d-05f5-0310-b6e9-bd551577e9d8 --- ihtml/themes/default/copyPasteDialog.tpl | 4 ++-- include/class_CopyPasteHandler.inc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ihtml/themes/default/copyPasteDialog.tpl b/ihtml/themes/default/copyPasteDialog.tpl index b4327460a..9926c7f50 100644 --- a/ihtml/themes/default/copyPasteDialog.tpl +++ b/ihtml/themes/default/copyPasteDialog.tpl @@ -17,11 +17,11 @@
  + {if $type == "copy"} + {/if} - {if $type == "copy"} - {/if}
{/if} {else} diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index 44cc6d01c..81cabc2fe 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -151,7 +151,7 @@ class CopyPasteHandler { /* Check if there are still entries the object queue */ function entries_queued() { - return( count($this->queue) >=1); + return( count($this->queue) >=1 || $this->current != FALSE); } @@ -271,13 +271,13 @@ class CopyPasteHandler { } if($type == "copy"){ if(isset($_POST['PerformCopyPaste'])){ + $this->_update_vars(); $msgs = $this->check(); if(count ($msgs) ){ foreach( $msgs as $msg){ print_red($msg); } }else{ - $this->_update_vars(); $this->current['object']->save(); $this->lastdn = $this->current['object']->dn; $this->current =FALSE; -- 2.30.2