From: hickert Date: Tue, 27 Apr 2010 13:56:34 +0000 (+0000) Subject: Updated object group member handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e5bec58422458345757364cdb429d7311093307;p=gosa.git Updated object group member handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17889 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/ogroups/class_ogroup.inc b/gosa-core/plugins/admin/ogroups/class_ogroup.inc index dce0461ec..e3f3768fe 100644 --- a/gosa-core/plugins/admin/ogroups/class_ogroup.inc +++ b/gosa-core/plugins/admin/ogroups/class_ogroup.inc @@ -191,6 +191,12 @@ class ogroup extends plugin $objects = $this->objectSelect->save(); $skipped = FALSE; foreach($objects as $object){ + $dn = $object['dn']; + + // Do not add existing members twice! + if(isset($this->member["$dn"])){ + continue; + } $tmp = ""; foreach($this->memberList as $obj){ @@ -199,7 +205,6 @@ class ogroup extends plugin $type = $this->getObjectType($object); $name= $this->getObjectName($object); - $dn = $object['dn']; /* Fill array */ if (isset($object["description"][0])){ diff --git a/gosa-core/plugins/admin/ogroups/generic.tpl b/gosa-core/plugins/admin/ogroups/generic.tpl index 2670e1503..34b4d8c2a 100644 --- a/gosa-core/plugins/admin/ogroups/generic.tpl +++ b/gosa-core/plugins/admin/ogroups/generic.tpl @@ -43,7 +43,6 @@ {render acl=$memberACL} {$memberList} {/render} -
{render acl=$memberACL}   {/render}