From: hickert Date: Tue, 27 Apr 2010 10:11:09 +0000 (+0000) Subject: Updated copy & paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dfd337167feecfc96bf7ecceda0bc548b2f30cd1;p=gosa.git 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 --- 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);