Code

Fixed copy/cut error
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Nov 2006 06:05:51 +0000 (06:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Nov 2006 06:05:51 +0000 (06:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5183 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiManagement.inc

index 5d966c64e6588e9f2282d7db86ceb8966c0b37d4..a0f77a551506e95a55a6c5ea05bdc952dda4d671 100644 (file)
@@ -627,7 +627,10 @@ class faiManagement extends plugin
 
         $this->CopyPasteHandler->save_object();
         $this->CopyPasteHandler->SetVar("base",             $this->DivListFai->selectedBase);
-        $this->CopyPasteHandler->SetVar("copy_paste_mode",  TRUE);
+
+        if($this->CopyPasteHandler->copyCurrent){
+          $this->CopyPasteHandler->SetVar("copy_paste_mode",  TRUE);
+        }
     
         $release = "ou=fai,ou=configs,ou=systems,".$_SESSION['CurrentMainBase'];
         if($_SESSION['faifilter']['branch']!="main"){
@@ -687,7 +690,6 @@ class faiManagement extends plugin
       if($s_action == "cut"){
         $this->CopyPasteHandler->Clear();
                          $dn= $this->objects[$s_entry]['dn'];
-        $acl= get_permissions ($dn, $this->ui->subtreeACL);
 
         $ldap       = $this->config->get_ldap_link();
         $ldap->cat($dn);
@@ -700,7 +702,6 @@ class faiManagement extends plugin
         $class = $tmp[1];
         $data  = $tmp[2];
         $obj= new $tabs($this->config, $this->config->data['TABS'][$data], $dn);
-        $obj->set_acl($acl);
         $this->CopyPasteHandler->Cut($obj);
       }
     }