Code

Fixed problem with not clickable error msg button
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Jun 2007 06:54:35 +0000 (06:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Jun 2007 06:54:35 +0000 (06:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6670 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPackage.inc
plugins/admin/fai/faiPackage.tpl

index 7e172ce1c0f9d58192b156f7450a022471aed0c6..32a26f91bb1bca327d91c72be94b119ca651a50d 100644 (file)
@@ -261,7 +261,8 @@ class faiPackage extends plugin
     }
 
     /* Configuration dialog open*/
-    if((isset($_POST['Conpkg']))&&(isset($_POST['usedPackages']))&&(!empty($_POST['usedPackages']))){
+    if((isset($_POST['Conpkg']))&&(isset($_POST['usedPackages']))&&(!empty($_POST['usedPackages'][0]))){
+
       $path = CONFIG_DIR."/fai/".$this->FAIdebianRelease."/debconf.d";
       $pkg_config = array();
       $pkg = $_POST['usedPackages'][0];
index 388c1e84852d261a19ca5dcc6d2a118f6df578e6..22ff23032b621239631ca06984ee4632ff9fd210 100644 (file)
@@ -66,6 +66,7 @@
                        <br>
                        <select id="usedPackages" name="usedPackages[]" title="{t}Choosen packages{/t}" multiple style="width:100%;height:300px;">
                                {html_options options=$usedPackages}
+                               <option value="" >&nbsp;</option>
                </select>
                        <br>
                        <input type="submit" name="Addpkg" value="{t}Add{/t}" {$OptionsACL} {$cnACL}>