summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e46717a)
raw | patch | inline | side by side (parent: e46717a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jan 2006 09:26:32 +0000 (09:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jan 2006 09:26:32 +0000 (09:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2441 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiPackage.inc | patch | blob | history | |
plugins/admin/fai/faiPackage.tpl | patch | blob | history |
index 92860db3269ce2c370a29afdf70fead0774af7de..b2a7de95b41994356d5b60b582952a57dc2bb5f4 100644 (file)
/* 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 */
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;
}
index 25372d9dd09b502bae9c1378ebd4daaa66765c4a..c65598798e85f64a22ec3ac76ac3252b79184570 100644 (file)
<td>
<h2><img class="center" alt="" src="images/fai_packages.png" align="middle" title="{t}Used packages{/t}"> {t}Used packages{/t}</h2>
<br>
- <select id="usedPackages" name="usedPackages" title="{t}Choosen packages{/t}" multiple style="width:100%;height:300px;">
+ <select id="usedPackages" name="usedPackages[]" title="{t}Choosen packages{/t}" multiple style="width:100%;height:300px;">
{html_options options=$usedPackages}
</select>
<br>