Code

Updated saving of partitions
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 May 2011 09:16:29 +0000 (09:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 May 2011 09:16:29 +0000 (09:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20813 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/Device/class_DevicePartition.inc

index c20cd2776684931ed319ba617e3d163b4da5b924..4f18a8bbfbcd4f7cea364c311edf616910a9bd4e 100644 (file)
@@ -19,7 +19,7 @@ class DevicePartition
     function init()
     {
         $rpc = $this->config->getRpcHandle();
-        $this->object = $rpc->openObject('libinst.preseed.diskdefinition', '');
+        $this->object = $rpc->openObject('libinst.preseed.diskdefinition', $this->partitionString);
 
         #$this->object->addDisk('sda');
         #$this->object->addDisk('sdb');
@@ -138,12 +138,15 @@ class DevicePartition
                     $target = $volumeGroupImg."&nbsp;".$target;
                 }
 
+                $fsType = (isset($raid['fsType'])) ? $raid['fsType'] :"";
+                $fsOptions = (isset($raid['fsOptions'])) ? $raid['fsOptions'] :"";
+
                 $lData[] = array("data" => array($str, 
                     $target,
                     '',
                     $devsStr,
-                    $raid['fsType'],
-                    $raid['fsOptions']
+                    $fsType,
+                    $fsOptions
                     ));
             }
         }