Code

Updated FAI partitions
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Aug 2009 06:46:51 +0000 (06:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Aug 2009 06:46:51 +0000 (06:46 +0000)
-Reenabled the old style partitions. Fixed problems while saving.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13987 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc

index 5b8eb3138ca127e1fbc1ade3436abef14cf39cef..63bcc0c4bb56b75e6b76c4b0a40cdfd8385e9e72 100644 (file)
@@ -285,12 +285,12 @@ class faiPartitionTable extends plugin
             break;
           case 'old': 
             $this->dialog = new faiPartitionTableEntry(
-                $this->config,$this->dn,$usedDiskNames,$this->disks[$s_entry]); 
+                $this->config,$this->dn,$this->getUsedDiskNames(),$this->disks[$s_entry]); 
             break;
         }
       }else{
         $this->dialog = new faiPartitionTableEntry(
-            $this->config,$this->dn,$usedDiskNames,$this->disks[$s_entry]); 
+            $this->config,$this->dn,$this->getUsedDiskNames(),$this->disks[$s_entry]); 
       }
       if($this->dialog){
         $this->dialog->set_acl_base($this->acl_base_for_current_object($dn));
@@ -448,6 +448,11 @@ class faiPartitionTable extends plugin
   }
 
 
+  function getUsedDiskNames()
+  {
+    return(array());  
+  }
+
 
   /* Delete me, and all my subtrees
    */
index 0efc24c103d918707367f568079cf81cc2846e8c..d8a4f5baec668c50408bbc566ef543d174c38422 100644 (file)
@@ -308,6 +308,7 @@ class faiPartitionTableEntry extends plugin
     /* Attach partitions */
     foreach($this->partitions as $key=>$val) {
       $this->partitions[$key]['FAIpartitionNr']=$key;
+      $this->partitions[$key]['cn']=$key;
     }
 
     /* Attach deleted */