From: hickert Date: Tue, 30 Mar 2010 13:02:01 +0000 (+0000) Subject: Updated partition table handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cb5ffb1ccbc94fdfc48f7714ebb109b40d26a7bb;p=gosa.git Updated partition table handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17395 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index a01dad4e4..2d00aedf6 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -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); diff --git a/gosa-plugins/fai/admin/fai/class_faiPartition.inc b/gosa-plugins/fai/admin/fai/class_faiPartition.inc index ad553a234..eafb5717b 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPartition.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPartition.inc @@ -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']; } } } diff --git a/gosa-plugins/fai/admin/fai/faiPartition.tpl b/gosa-plugins/fai/admin/fai/faiPartition.tpl index cb3743dce..17756ba7b 100644 --- a/gosa-plugins/fai/admin/fai/faiPartition.tpl +++ b/gosa-plugins/fai/admin/fai/faiPartition.tpl @@ -162,7 +162,7 @@ - {t}Mount point{/t} + {t}Mount point{/t}{$must} @@ -197,4 +197,4 @@ {/if} - \ No newline at end of file +