From c636a502bbde8c4b59a927128b9a37fb1918671f Mon Sep 17 00:00:00 2001 From: psc Date: Thu, 29 Apr 2010 08:54:36 +0000 Subject: [PATCH] Apply fix for #2994 Do not check if gosaApplicationFlags changed as it appears to be not neccessary and causes bugs git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@17925 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../groups/apps/class_groupApplication.inc | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/trunk/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/trunk/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc index 5e757ef35..d127f38b5 100644 --- a/trunk/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc +++ b/trunk/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc @@ -1292,23 +1292,7 @@ class appgroup extends plugin $attrs['gosaApplicationParameter'] = array(); if (isset($entry['FLAGS'])) { - /* Check if the flags changed at all */ - $diff = FALSE; - foreach($this->apps as $id => $app) { - if($app['cn'][0] == $entry['NAME']){ - $orig_flags = $app['gosaApplicationFlags'][0]; - foreach($this->app_flags as $name => $flag) { - if((strstr($orig_flags, $flag) && !strstr($entry['FLAGS'],$flag)) || !strstr($orig_flags, $flag) && strstr($entry['FLAGS'], $flag)) { - $diff = TRUE; - break; - } - } - } - } - /* Only store appflags into LDAP if its different from the original app */ - if ($diff) { - $attrs['gosaApplicationParameter'][] = "gosaApplicationFlags:".$entry['FLAGS']; - } + $attrs['gosaApplicationParameter'][] = "gosaApplicationFlags:".$entry['FLAGS']; } foreach($entry['PARAMETER'] as $name => $value){ -- 2.30.2