Code

Fixed problem with not clickable buttons in fai package error msgs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Jun 2007 06:56:05 +0000 (06:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Jun 2007 06:56:05 +0000 (06:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6671 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 5b9da7159a462d8f5a9868cb12b6671129ac309c..e607b601697f0740f8b156f25cd1f3b5e2aee34d 100644 (file)
@@ -258,7 +258,7 @@ class faiPackage extends plugin
     }
 
     /* Configuration dialog open*/
-    if((isset($_POST['Conpkg']))&&(isset($_POST['usedPackages']))&&(!empty($_POST['usedPackages'])) && $this->acl_is_writeable("FAIdebconfInfo")){
+    if((isset($_POST['Conpkg']))&&(isset($_POST['usedPackages']))&&(!empty($_POST['usedPackages'][0])) && $this->acl_is_writeable("FAIdebconfInfo")){
       $path = CONFIG_DIR."/fai/".$this->FAIdebianRelease."/debconf.d";
       $pkg_config = array();
       $pkg = $_POST['usedPackages'][0];
index 4986d856afbf8e221547086e43adb8a1377aa291..56b8a7df6308e67f30db95aa9ee373a76b99af17 100644 (file)
@@ -72,6 +72,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>
 {render acl=$FAIpackageACL}