Code

Updated FAI summary tab
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Jun 2009 12:41:55 +0000 (12:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Jun 2009 12:41:55 +0000 (12:41 +0000)
-It will now work with inherited values.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13757 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 905a97893c57c2297835ad542c6abcd531b7d569..f322d0b6d3c46131189073b017aefee718e67e8c 100644 (file)
@@ -75,8 +75,13 @@ class faiSummaryTab extends plugin{
   
     /* Check if parent tab is work tab */
     }elseif(isset($this->parent->by_name['workstartup'])){
-      $this->Classes = $this->parent->by_object['workstartup']->FAIclass;
-      $this->Release = $this->parent->by_object['workstartup']->FAIrelease;
+      if($this->parent->by_object['workstartup']->FAIdebianMirror == "inherited"){
+        $this->Classes = $this->parent->by_object['workstartup']->InheritedFAIclass;
+        $this->Release = $this->parent->by_object['workstartup']->InheritedFAIrelease;
+      }else{
+        $this->Classes = $this->parent->by_object['workstartup']->FAIclass;
+        $this->Release = $this->parent->by_object['workstartup']->FAIrelease;
+      }
 
       /* Check if this is a workstation or an object group */
       if(isset($this->parent->by_object['workgeneric'])){