From: hickert Date: Wed, 22 Nov 2006 06:05:51 +0000 (+0000) Subject: Fixed copy/cut error X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4facd39740452cc873d938815314b72f143cd07f;p=gosa.git Fixed copy/cut error git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5183 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index 5d966c64e..a0f77a551 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -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); } }