From 0c01149d64beb2979ef93661e8bd753ed75cd5d1 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 9 Sep 2010 07:01:45 +0000 Subject: [PATCH] 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 --- gosa-core/plugins/admin/ogroups/tabs_ogroups.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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(); } -- 2.30.2