Code

Updated workstation startup tab
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Sep 2008 09:56:18 +0000 (09:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Sep 2008 09:56:18 +0000 (09:56 +0000)
-Fixed FAI dependencies.

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

gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
gosa-plugins/goto/admin/systems/goto/workstationStartup.tpl

index ef3fa586a94c316aa6bf02ea7e7b25503d93ca30..2084bb9a851273adf6e02b01c1fa1ed2a3fb228b 100644 (file)
@@ -61,7 +61,7 @@ class workstartup extends plugin
   {
     /* Check if FAI is active */
     $tmp= $config->search("faiManagement", "CLASS",array('menu','tabs'));
-    if(!empty($tmp)){
+    if(!empty($tmp) && class_available("faiManagement")){
       $this->fai_activated = TRUE;
     }else{
       $this->attributes = array("gotoLdapServer", "gotoBootKernel", "gotoKernelParameters", "gotoShare");
index 2d9c5bf17de02a3ace6a7b671f4266440f7b428e..cd3025fc63585f970313726addc3ea69cc2b7cb5 100644 (file)
@@ -58,7 +58,9 @@
   
   <td style="vertical-align:top;">
 
-       {if !$si_active}
+       {if !$fai_activated}
+                       <h2>{t}FAI Object assignment disabled. You can't use this feature until FAI is activated.{/t}</h2>                      
+       {elseif !$si_active}
                <b>{t}GOsa support daemon not configured{/t}</b><br>
                {t}FAI settings cannot be modified{/t}
        {elseif $si_fai_action_failed}
                        <input name="AddClass" value="{msgPool type=addButton}" type="submit"> 
        {/render}
        <!--            <input name="DelClass" value="{msgPool type=delButton}" type="submit"> -->
-               {/if}
-
-               {else}
-
-                       <h2>{t}FAI Object assignment disabled. You can't use this feature until FAI is activated.{/t}</h2>                      
+                       {/if}
 
                {/if}
                </td>