From: hickert Date: Thu, 9 Sep 2010 07:01:45 +0000 (+0000) Subject: Updated groupware tabs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0c01149d64beb2979ef93661e8bd753ed75cd5d1;p=gosa.git Updated groupware tabs -Fixes errors while removing ogroups with no members that still have some member related attributes set. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19573 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc index 740eb25c0..a1c51dae4 100644 --- a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc +++ b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc @@ -365,11 +365,8 @@ class ogrouptabs extends tabs $this->dn= 'cn='.$baseobject->cn.','.get_ou("group", "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(); }