summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 835105e)
raw | patch | inline | side by side (parent: 835105e)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Sep 2010 12:48:09 +0000 (12:48 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Sep 2010 12:48:09 +0000 (12:48 +0000) |
Remove properties of object groups once the last member has been
removed and the object group is saved. This fixes a problem when
removing of empty object groups was hitting an ldap error if sub
objects were still present.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19551 594d385d-05f5-0310-b6e9-bd551577e9d8
removed and the object group is saved. This fixes a problem when
removing of empty object groups was hitting an ldap error if sub
objects were still present.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19551 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc | patch | blob | history |
diff --git a/trunk/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc b/trunk/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc
index 3794fc6e24e44fc79230803eb0ee6207bf3f138c..f5b777db6ac7378446dce4fd4a27ec85133fda1d 100644 (file)
$this->dn= 'cn='.$baseobject->cn.','.get_ou('ogroupRDN').$baseobject->base;
}
- /* Only delete attributes if there are members left */
- if (count($this->by_object['ogroup']->memberList) != 0) {
- foreach(array_keys($this->to_remove) as $object) {
- $this->to_remove[$object]->remove_from_parent();
- }
+ foreach(array_keys($this->to_remove) as $object) {
+ $this->to_remove[$object]->remove_from_parent();
}
tabs::save();
}