Code

Updated FAI state detction.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Jul 2008 11:44:07 +0000 (11:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Jul 2008 11:44:07 +0000 (11:44 +0000)
-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

gosa-plugins/fai/admin/fai/class_FAI.inc

index 9b25238f752e7cd07c03eb51274781071fa1c598..34c36746540238525e476cf333b0460a01f25543 100644 (file)
@@ -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 */