summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab11a6e)
raw | patch | inline | side by side (parent: ab11a6e)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Jun 2009 09:18:04 +0000 (09:18 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 15 Jun 2009 09:18:04 +0000 (09:18 +0000) |
Avoid error message when saving a workstation object
with Startup -> FAI-Classes set to state 'inherited'
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13717 594d385d-05f5-0310-b6e9-bd551577e9d8
with Startup -> FAI-Classes set to state 'inherited'
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13717 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc | patch | blob | history |
diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
index 4d1eae95178eeb4d55674f218d7f885de763fefb..665f3348aa37289e0cff1c18a55b098ef482d2bc 100644 (file)
if(preg_match("/fai_remove/i",$name)){
$value = base64_decode(preg_replace("/_.*$/i","",preg_replace("/fai_remove_/i","",$name)));
unset($this->FAIclass[$value]);
+ if($this->FAIclass == array()){
+ /* class list is emtpy. Check whether the system is part of an object group and set
+ the FAI mirror to "inherited" in this case. */
+ if ($this->member_of_ogroup){
+ $this->FAIdebianMirror = "inherited";
+ }
+ }
}
}
}