From 0e4f697792e37575b8408349f5ce3b01583f8d47 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 3 Dec 2008 12:42:34 +0000 Subject: [PATCH] Updated fai git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13144 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiGroupHandle.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiGroupHandle.inc b/gosa-plugins/fai/admin/fai/class_faiGroupHandle.inc index 0049555ed..eb31295ad 100644 --- a/gosa-plugins/fai/admin/fai/class_faiGroupHandle.inc +++ b/gosa-plugins/fai/admin/fai/class_faiGroupHandle.inc @@ -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; -- 2.30.2