From 0a6fef524aa3975e17cae04da34a81182aa54fd4 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 6 Jun 2007 07:12:13 +0000 Subject: [PATCH] Don't save FAIstate git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6554 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_workstationGeneric.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index bd426084b..c9414bf70 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -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){ -- 2.30.2