Code

Some changes repository plugin
[gosa.git] / plugins / admin / fai / class_faiPartitionTable.inc
index 47e989cc29d45085396a9257b63368c008bd079c..fc35fd188204f1ff3cc2218af40e4c03074100bd 100644 (file)
@@ -77,6 +77,9 @@ class faiPartitionTable extends plugin
 
   function execute()
   {
+       /* Call parent execute */
+       plugin::execute();
+
     /* Fill templating stuff */
     $smarty= get_smarty();
     $display= "";
@@ -97,7 +100,11 @@ class faiPartitionTable extends plugin
     /* Edit disk.
      * Open dialog which allows us to edit the selected entry 
      */    
-    $_SESSION['objectinfo'] = $this->dn;
+
+    if($this->dn != "new"){
+      $_SESSION['objectinfo']= $this->dn;
+    }
+
     if((isset($_POST['EditDisk']))&&(isset($_POST['disks']))){
       $usedDiskNames =array();
       foreach($this->disks  as $key=>$disk){