Code

Updated fai
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Dec 2008 12:42:34 +0000 (12:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Dec 2008 12:42:34 +0000 (12:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13144 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiGroupHandle.inc

index 0049555ed00f209335c61918162e82523d3f36d0..eb31295ad968ea011760147a6dde4dedeccd5daf 100644 (file)
@@ -18,11 +18,13 @@ class faiGroupHandle{
     }
 
     /* Preset required values */
+    $select_set = FALSE;
     foreach($FAI_group as $type => $data){
       $FAI_group[$type]['selected'] = FALSE;
       $FAI_group[$type]['freezed'] = isset($data['FAIstate']) && preg_match("/freeze/",$data['FAIstate']);
-      if(($this->mode == "cut" || $this->mode == "edit") && !$FAI_group[$type]['freezed']){
+      if(!$select_set && ($this->mode == "cut" || $this->mode == "edit") && !$FAI_group[$type]['freezed']){
         $FAI_group[$type]['selected'] = TRUE;
+        $select_set =TRUE;
       }
     }
     $this->FAI_group = $FAI_group;