From: hickert Date: Wed, 11 Jan 2006 09:26:32 +0000 (+0000) Subject: Added mulsti deletion for fai Packages X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c9acd513cb86fe9ecb0567671b4fd5df5ff5d9f8;p=gosa.git Added mulsti deletion for fai Packages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2441 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPackage.inc b/plugins/admin/fai/class_faiPackage.inc index 92860db32..b2a7de95b 100644 --- a/plugins/admin/fai/class_faiPackage.inc +++ b/plugins/admin/fai/class_faiPackage.inc @@ -179,7 +179,11 @@ class faiPackage extends plugin /* Delte selected package */ if(isset($_POST['Delpkg'])){ - unset($this->usedPackages[$_POST['usedPackages']]); + foreach($_POST['usedPackages'] as $del){ + if(isset($this->usedPackages[$del])){ + unset($this->usedPackages[$del]); + } + } } /* Abort package selection dialog */ @@ -208,11 +212,13 @@ class faiPackage extends plugin if((isset($_POST['Conpkg']))&&(isset($_POST['usedPackages']))&&(!empty($_POST['usedPackages']))){ $path = "/etc/gosa/fai/".$this->FAIdebianRelease."/debconf.d"; $pkg_config = array(); - if(isset($this->ConfiguredPackages[$_POST['usedPackages']])){ - $pkg_config = $this->ConfiguredPackages[$_POST['usedPackages']]; + $pkg = $_POST['usedPackages'][0]; + + if(isset($this->ConfiguredPackages[$pkg])){ + $pkg_config = $this->ConfiguredPackages[$pkg]; } - $this->dialog = new faiPackageConfiguration($this->config, $this->dn,$_POST['usedPackages'], $path, $pkg_config); + $this->dialog = new faiPackageConfiguration($this->config, $this->dn,$pkg, $path, $pkg_config); $this->is_dialog =true; } diff --git a/plugins/admin/fai/faiPackage.tpl b/plugins/admin/fai/faiPackage.tpl index 25372d9dd..c65598798 100644 --- a/plugins/admin/fai/faiPackage.tpl +++ b/plugins/admin/fai/faiPackage.tpl @@ -54,7 +54,7 @@

 {t}Used packages{/t}


- {html_options options=$usedPackages}