From dfd337167feecfc96bf7ecceda0bc548b2f30cd1 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 27 Apr 2010 10:11:09 +0000 Subject: [PATCH] Updated copy & paste -References will only be copied in 'copy' mode git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17878 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_CopyPasteHandler.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gosa-core/include/class_CopyPasteHandler.inc b/gosa-core/include/class_CopyPasteHandler.inc index 868081204..f0cb85d7d 100644 --- a/gosa-core/include/class_CopyPasteHandler.inc +++ b/gosa-core/include/class_CopyPasteHandler.inc @@ -511,6 +511,9 @@ class CopyPasteHandler { $dst_dn = $this->current['object']->dn; $src_dn = $this->current['dn']; + // Only copy references if required + if($this->current['method'] != 'copy') return; + // Migrate objectgroups $ogroups = get_sub_list("(&(objectClass=gosaGroupOfNames)(member=".LDAP::prepare4filter(LDAP::fix($src_dn))."))", "ogroups", array(get_ou("ogroupRDN")),$this->config->current['BASE'],array("dn"), GL_SUBSEARCH | GL_NO_ACL_CHECK); -- 2.30.2