summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8f8ae67)
raw | patch | inline | side by side (parent: 8f8ae67)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Apr 2010 10:11:09 +0000 (10:11 +0000) | ||
committer | hickert <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17878 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_CopyPasteHandler.inc | patch | blob | history |
diff --git a/gosa-core/include/class_CopyPasteHandler.inc b/gosa-core/include/class_CopyPasteHandler.inc
index 868081204124d96d0b123ac0656acc1dadcc5fa9..f0cb85d7db7e1ea8d8124508195231ee0ac515ac 100644 (file)
$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);