summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6966c8f)
raw | patch | inline | side by side (parent: 6966c8f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jan 2006 09:51:22 +0000 (09:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 11 Jan 2006 09:51:22 +0000 (09:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2445 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiVariable.inc | patch | blob | history | |
plugins/admin/fai/faiVariable.tpl | patch | blob | history |
index 87aab8e730d490d1bb2cba3cbf8f53a0c3176116..244c950393613b6e8b9852132e0891bf266ece14 100644 (file)
/* Edit selected Sub Object */
if((isset($_POST['EditSubObject']))&&(isset($_POST['SubObject']))){
- $this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$_POST['SubObject']]);
- $_SESSION['objectinfo'] = $this->SubObjects[$_POST['SubObject']]['dn'];
+
+ $var = $_POST['SubObject'][0];
+
+ $this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$var]);
+ $_SESSION['objectinfo'] = $this->SubObjects[$var]['dn'];
$this->is_dialog=true;
}
/* Remove Sub object */
if((isset($_POST['DelSubObject']))&&(isset($_POST['SubObject']))){
- if($this->SubObjects[$_POST['SubObject']]['status'] == "edited"){
- $this->SubObjects[$_POST['SubObject']]['status']= "delete";
- }else{
- unset($this->SubObjects[$_POST['SubObject']]);
+ foreach($_POST['SubObject'] as $var){
+ if($this->SubObjects[$var]['status'] == "edited"){
+ $this->SubObjects[$var]['status']= "delete";
+ }else{
+ unset($this->SubObjects[$var]);
+ }
}
}
index 90a3d48834346e6c7112b4f35a4dc158beebcb35..d7ef90216c24d01044a2b06a9d1794ac17d9c29a 100644 (file)
<table summary="" width="100%">
<tr>
<td>
- <select name="SubObject" title="{t}Choose a variable to delete or edit{/t}" style="width:100%;" size="20" id="SubObject">
+ <select name="SubObject[]" multiple title="{t}Choose a variable to delete or edit{/t}" style="width:100%;" size="20" id="SubObject">
{html_options values=$SubObjectKeys output=$SubObjects}
</select><br>
<input type="submit" name="AddSubObject" value="{t}Add{/t}" title="{t}Add{/t}">