Code

Apply fix for #6056
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Dec 2010 10:25:03 +0000 (10:25 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Dec 2010 10:25:03 +0000 (10:25 +0000)
Relax check for object group membership for the Devices tab. Display
values as inherited for the (broken) case that a system is member of
more than one object group.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@20515 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc

index bf30f119f689b264ef3adbffe77ef2da44c879b9..305aefbbd8d21bd9db9b05bb64ec1c7fd7fa6835 100644 (file)
@@ -517,7 +517,7 @@ class workservice extends plugin
       $ldap->cd($this->config->current['BASE']);
       $ldap->search("(&(objectClass=gotoWorkstationTemplate)(member=".LDAP::prepare4filter($this->dn)."))");
     }
-      if ($ldap->count() == 1){
+      if ($ldap->count() >= 1){
         $this->member_of_ogroup = TRUE;
         $attrs= $ldap->fetch();
         $map= array("gotoXResolution", "gotoXColordepth", "gotoXKbModel", "gotoXKbLayout",