From 4facd39740452cc873d938815314b72f143cd07f Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Nov 2006 06:05:51 +0000 Subject: [PATCH] Fixed copy/cut error git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5183 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiManagement.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } } -- 2.30.2