Code

Reverted fai partition modification.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Jun 2009 10:11:09 +0000 (10:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Jun 2009 10:11:09 +0000 (10:11 +0000)
-Caused preserve flag to toggle on each reload.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13844 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiPartitionTableEntry.inc

index 8d31813509d6fd9b5a15d5c60f3a59e97a98e68c..0efc24c103d918707367f568079cf81cc2846e8c 100644 (file)
@@ -272,13 +272,13 @@ class faiPartitionTableEntry extends plugin
                                  "changeState('FAIfsOptions_".$key."') ; \"";
   
         if($this->acl_is_writeable("FAIpartitionFlags")){
-          if($part['FAIpartitionFlags'] != "preserve"){
+          if($part['FAIpartitionFlags']!=false){
             $str .= "\n<td><input type='checkbox' name='FAIpartitionFlags_".$key."' value='preserve' checked ".$changeState." ".$disableALL."></td>";
           }else{
             $str .= "\n<td><input type='checkbox' name='FAIpartitionFlags_".$key."' value='preserve' ".$changeState." ".$disableALL."></td>";
           }
         }else{
-          if($part['FAIpartitionFlags'] != "preserve"){
+          if($part['FAIpartitionFlags']!=false){
             $str .= "<td>"._("False")."</td>";
           }else{
             $str .= "<td>"._("True")."</td>";