Code

Fixed problem with partition removing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Sep 2006 10:59:37 +0000 (10:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 21 Sep 2006 10:59:37 +0000 (10:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4759 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPartitionTableEntry.inc

index cc2c0619c966a059d67f13eb06aaa35dfa0fda1a..b3d849cd31c4045810312247f9315fdb3e3c14db 100644 (file)
@@ -122,7 +122,8 @@ class faiPartitionTableEntry extends plugin
      */
     if($s_action == "remove"){
       if($this->partitions[$s_entry]['status'] == "edited"){
-        $this->deletePartitions[]= $this->partitions[$s_entry];
+        $this->deletePartitions[$s_entry]= $this->partitions[$s_entry];
+        $this->deletePartitions[$s_entry]['FAIpartitionNr']=$s_entry;
         unset($this->partitions[$s_entry]);
       }else{
         unset($this->partitions[$s_entry]);
@@ -171,8 +172,6 @@ class faiPartitionTableEntry extends plugin
       $smarty->assign("DISK_cnACL","");
 //    }
 
-  
-
     /* Fetch template and show the result
      */
     $display.= $smarty->fetch(get_template_path('faiPartitionTableEntry.tpl', TRUE));