Code

Don't save FAIstate
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Jun 2007 07:12:13 +0000 (07:12 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 Jun 2007 07:12:13 +0000 (07:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6554 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_workstationGeneric.inc

index bd426084bfb2a5e2262816df10b9bc2c46810342..c9414bf70b5952f13be74dcefddc2ae221749d02 100644 (file)
@@ -41,7 +41,7 @@ class workgeneric extends plugin
   var $ignore_account= TRUE;
   var $attributes= array("gotoMode", "gotoSyslogServer", "gotoNtpServer",
       "gotoFloppyEnable", "gotoCdromEnable", "cn", "gotoSndModule",
-      "ghCpuType", "ghMemSize", "ghUsbSupport",
+      "ghCpuType", "ghMemSize", "ghUsbSupport", "FAIstate",
       "ghGfxAdapter", "ghSoundAdapter", "gotoLastUser", "l","FAIscript");
   var $objectclasses= array("top", "gotoWorkstation", "GOhard","FAIobject");
 
@@ -172,7 +172,7 @@ class workgeneric extends plugin
             }
 
             if($attrs['FAIstate'] == ""){
-#FIXME we should check if FAIobject is used anymore
+              #FIXME we should check if FAIobject is used anymore
               $attrs['FAIstate'] = array();
             }
 
@@ -399,6 +399,11 @@ class workgeneric extends plugin
       }
     }
 
+    /* Remove FAIstate */
+    if (isset($this->attrs['FAIstate'])){
+      unset ($this->attrs['FAIstate']);
+    }
+
     /* Add missing arrays */
     foreach (array("ghScsiDev", "ghIdeDev", "ghNetNic") as $val){
       if (isset ($this->$val) && count ($this->$val) != 0){