Code

Updated FAI
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Jan 2010 09:30:20 +0000 (09:30 +0000)
committerhickert <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
gosa-plugins/fai/admin/fai/class_filterFAI.inc

index d8b8f15bb563e4c0e54f1c93fa257eeb4819beae..7a23abecd58a5092c7c17c939b68b41c732adfeb 100644 (file)
@@ -106,6 +106,9 @@ class faiManagement extends management
           $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");
         }
@@ -163,6 +166,9 @@ class faiManagement extends management
       $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();
index 06ae4ef7974414cda7e4f841bbb5ef7f547aeb79..49d6d9a54b09278613d6123d40ad413aa06c31d7 100644 (file)
@@ -59,10 +59,11 @@ class filterFAI extends filterLDAP{
           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{