Code

Updated partition table handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Mar 2010 13:02:01 +0000 (13:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Mar 2010 13:02:01 +0000 (13:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17395 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiManagement.inc
gosa-plugins/fai/admin/fai/class_faiPartition.inc
gosa-plugins/fai/admin/fai/faiPartition.tpl

index a01dad4e4fffee8690f4dfeefb8a66184d429a2f..2d00aedf64e98d949bd4c80924025a47fe0c24d0 100644 (file)
@@ -1184,6 +1184,7 @@ class faiManagement extends management
         $entry = $headpage->entries[$id];
 
         if(in_array('FAKE_OC_FAI', $entry['objectClass'])){
+          unset($_POST[$name]);
           if(isset($headpage->entries[$id]['GROUPS'][$tab])){
             $data =$headpage->entries[$id]['GROUPS'][$tab];
             $type = $this->get_type($data);
index ad553a2348acd2107c0841b3b4bd92271772a260..eafb5717b590ebd9f031bf125413c6719aadd766 100644 (file)
@@ -355,14 +355,14 @@ class faiPartition extends plugin
 
       // Toggle spare flag for partition entries
       if(isset($_POST['toggleSpare']) && isset($_POST['physicalPartition'])){
-        $this->raidDevices[$_POST['physicalPartition']]['spare'] = 
-            !$this->raidDevices[$_POST['physicalPartition']]['spare'];
+        $this->raidDevices[$_POST['physicalPartition'][0]]['spare'] = 
+            !$this->raidDevices[$_POST['physicalPartition'][0]]['spare'];
       }
 
       // Toggle missing flag for partition entries
       if(isset($_POST['toggleMissing']) && isset($_POST['physicalPartition'])){
-        $this->raidDevices[$_POST['physicalPartition']]['missing'] = 
-            !$this->raidDevices[$_POST['physicalPartition']]['missing'];
+        $this->raidDevices[$_POST['physicalPartition'][0]]['missing'] = 
+            !$this->raidDevices[$_POST['physicalPartition'][0]]['missing'];
       }
     } 
   }
index cb3743dcecf43824c8067fef659b593034046080..17756ba7b6225144d8881b2286799d71a8b4c5e9 100644 (file)
   </td>
  </tr>
  <tr>
-  <td>{t}Mount point{/t}
+  <td>{t}Mount point{/t}{$must}
   </td>
   <td>
    
  {/if}
  <button type='submit' name='PartitionCancel'>
  {msgPool type=cancelButton}</button>
-</div>
\ No newline at end of file
+</div>