From: psc Date: Mon, 15 Jun 2009 09:18:04 +0000 (+0000) Subject: Apply patch from mba for Trac #2644 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ebd872f918646b986edd20db6f8b75c9bae8d347;p=gosa.git Apply patch from mba for Trac #2644 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 --- 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 4d1eae951..665f3348a 100644 --- a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -389,6 +389,13 @@ class workstartup extends plugin 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"; + } + } } } }