From: hickert Date: Mon, 7 Jun 2010 11:15:07 +0000 (+0000) Subject: Updated groups X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b9a65577e900d1c3d5762e1d2ca66a3e43863e38;p=gosa.git Updated groups -Samba groups can now be copied again. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18852 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/groups/class_group.inc b/gosa-core/plugins/admin/groups/class_group.inc index 0ffdff7b7..c5daaf909 100644 --- a/gosa-core/plugins/admin/groups/class_group.inc +++ b/gosa-core/plugins/admin/groups/class_group.inc @@ -1185,20 +1185,22 @@ class group extends plugin function PrepareForCopyPaste($source) { - plugin::PrepareForCopyPaste($source); + plugin::PrepareForCopyPaste($source); - $this->trustModeDialog->PrepareForCopyPaste($source); + $this->trustModeDialog->PrepareForCopyPaste($source); - if ($this->smbgroup) { - $this->sambaSID = $this->getSambaSID(); - } + // Detect samba groups and adapt its values. + $this->smbgroup = in_array('sambaGroupMapping', $source['objectClass']); + if ($this->smbgroup) { + $this->sambaSID = $this->getSambaSID(); + } - $this->memberUid = array(); - if(isset($source['memberUid'])){ - for($i = 0 ; $i < $source['memberUid']['count']; $i ++){ - $this->memberUid[] = $source['memberUid'][$i]; + $this->memberUid = array(); + if(isset($source['memberUid'])){ + for($i = 0 ; $i < $source['memberUid']['count']; $i ++){ + $this->memberUid[] = $source['memberUid'][$i]; + } } - } }