Code

Updated copy & paste
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Apr 2010 10:11:09 +0000 (10:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 27 Apr 2010 10:11:09 +0000 (10:11 +0000)
-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

index 868081204124d96d0b123ac0656acc1dadcc5fa9..f0cb85d7db7e1ea8d8124508195231ee0ac515ac 100644 (file)
@@ -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);