summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7153f17)
raw | patch | inline | side by side (parent: 7153f17)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 Jan 2010 09:30:20 +0000 (09:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 Jan 2010 09:30:20 +0000 (09:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15075 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history | |
gosa-plugins/fai/admin/fai/class_filterFAI.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index d8b8f15bb563e4c0e54f1c93fa257eeb4819beae..7a23abecd58a5092c7c17c939b68b41c732adfeb 100644 (file)
$data = array_pop($entry['GROUPS']);
$type = $this->get_type($data);
management::editEntry('editEntry',array($data['dn']),array(),$type[0],$type[2],$type[1]);
+ $this->tabObject->by_object[$type[1]]->FAIstate = $data['FAIstate'];
+ $this->tabObject->read_only = preg_match("/freeze/i", $data['FAIstate']);
+
}else{
$this->dialogObject = new faiGroupHandle($entry['GROUPS'],"edit");
}
$data = array_pop($entry);
$type = $this->get_type($data);
management::editEntry('editEntry',array($data['dn']),array(),$type[0],$type[2],$type[1]);
+ $this->tabObject->by_object[$type[1]]->FAIstate = $data['FAIstate'];
+ $this->tabObject->read_only = preg_match("/freeze/i", $data['FAIstate']);
+
}elseif($this->dialogObject instanceOf faiGroupHandle && $this->dialogObject->get_mode() == "remove"){
$this->dialogObject->save_object();
$to_delete = $entry = $this->dialogObject->get_selected();
diff --git a/gosa-plugins/fai/admin/fai/class_filterFAI.inc b/gosa-plugins/fai/admin/fai/class_filterFAI.inc
index 06ae4ef7974414cda7e4f841bbb5ef7f547aeb79..49d6d9a54b09278613d6123d40ad413aa06c31d7 100644 (file)
if(!preg_match("/freeze/i", $entry['FAIstate'])){
$obj['objectClass'][] = "FAKE_OC_IsBranch";
}
+ $object['FAIstate'] = $entry['FAIstate'];
$obj['TYPES'][] = $type;
$obj['GROUPS'][$type] = $object;
-
+
if(!isset($result[$obj['cn']])){
$result[$obj['cn']] = $obj;
}else{