From: hickert Date: Thu, 17 Jul 2008 11:44:07 +0000 (+0000) Subject: Updated FAI state detction. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7bde3715f7536fd1276cef6edb52f062f69fc09f;p=gosa.git Updated FAI state detction. -If a FAI object is part of the currently selected release and not inherited from a parent release, then use the obejcts own FAIstate instead of using the FAIstate of the release. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11704 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_FAI.inc b/gosa-plugins/fai/admin/fai/class_FAI.inc index 9b25238f7..34c367465 100644 --- a/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -74,8 +74,12 @@ class FAI /* Seems to be created within this release department. This indicates - it can't be of state "freeze" - */ - $buffer['FAIstate'] = "branch"; + */ + if(isset($attr['FAIstate'])){ + $buffer['FAIstate'] = $attr['FAIstate'][0]; + }else{ + $buffer['FAIstate'] = "branch"; + } } /* In detailed mode are some additonal informations visible */