From: hickert Date: Wed, 11 Jan 2006 09:48:05 +0000 (+0000) Subject: Added multideletion for FAIscripts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6966c8f33f6e63c82d0eec3a317fdf782d9cece1;p=gosa.git Added multideletion for FAIscripts git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2444 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 50e5349ad..b7e122058 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -101,17 +101,22 @@ class faiScript extends plugin /* 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']; + $script = $_POST['SubObject'][0]; + + $this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$script]); + $_SESSION['objectinfo'] = $this->SubObjects[$script]['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 $script){ + if($this->SubObjects[$script]['status'] == "edited"){ + $this->SubObjects[$script]['status']= "delete"; + }else{ + unset($this->SubObjects[$script]); + } } } diff --git a/plugins/admin/fai/faiScript.tpl b/plugins/admin/fai/faiScript.tpl index 59a80471d..67d25a1e9 100644 --- a/plugins/admin/fai/faiScript.tpl +++ b/plugins/admin/fai/faiScript.tpl @@ -37,7 +37,7 @@
- {html_options values=$SubObjectKeys output=$SubObjects}