Code

Fixed copy & paste.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Mar 2008 10:41:07 +0000 (10:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Mar 2008 10:41:07 +0000 (10:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9237 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_CopyPasteHandler.inc

index 1d7364dfcde91299c5d09afa1c2f4fdfc2f62080..b780517f5c791fa2f74c67668e62c67a50ddfb8a 100644 (file)
@@ -276,7 +276,6 @@ class CopyPasteHandler {
          */
         if(!isset($entry['object'])){
           $entry = $this->load_entry_from_queue($entry);
-          $entry = $this->_update_vars($entry);
           $this->queue[$key] = $entry;
         }
         $msgs = $entry['object']->check();
@@ -308,6 +307,7 @@ class CopyPasteHandler {
         /* Load next queue entry */
         $this->current = $entry;
         $this->lastdn = $this->current['object']->dn;
+        $this->current= $this->_update_vars($this->current);
         $this->current['object']->save();
         $this->current = FALSE;
       } 
@@ -322,6 +322,7 @@ class CopyPasteHandler {
       /* Load next queue entry */
       if(!count($msgs)){
         $this->lastdn = $this->current['object']->dn;
+        $this->current= $this->_update_vars($this->current);
         $this->current['object']->save();
         $this->current = FALSE;
       }else{