Code

Added FAIprofile selection for Workstations
[gosa.git] / plugins / admin / fai / class_faiPackageNew.inc
index 45ca89db01546d63ebe7750bf5dc6e6aa29e1e38..3505c39f853e42f11bd6c69b0f197b554e153c3b 100644 (file)
@@ -75,7 +75,7 @@ class faiPackageNew extends plugin
     }elseif(empty($this->FAIdebianSection)){
       $disableRelease = $disableMirror  = $disableContinue = true;
     }elseif(empty($this->FAIdebianMirror)){
-      $disableRelease = $disableSection = $disableContinue = true;
+      $disableRelease = $disableSection =  true;
     }else{
       $disableRelease = $disableSection =  true;
     }
@@ -83,12 +83,19 @@ class faiPackageNew extends plugin
     /* check servers matching release and section settings */
     $availableServer = array();
     foreach($this->mirrors as $mir){
+    
+      /* Check if release and section match */
       if($mir['release'] == $this->FAIdebianRelease){
         $pass = true;
+    
         foreach($this->FAIdebianSection as $sec){
+
+        /* If a mirror match, attach */
           if($sec != $mir['section']){
             $pass = false;
           }
+
+        /* Save all matching */ 
         if($pass){
             $availableServer[$mir['mirror']]=$mir['mirror'];
           }
@@ -159,6 +166,10 @@ class faiPackageNew extends plugin
       $smarty->assign("SectionACL"," disabled ");
     }
 
+
+    $smarty->assign("DisSection",!empty($this->FAIdebianSection));
+    $smarty->assign("DisRelease",!empty($this->FAIdebianRelease));
+
     $smarty->assign("mirrors" ,$availableServer);
     $smarty->assign("mirror"  ,$this->FAIdebianMirror);
     $smarty->assign("releases",$this->releases);