From 377eca50fe55f81b3109ab95b7df3332c3e21c4f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 20 Oct 2005 10:32:47 +0000 Subject: [PATCH] dn is shown in header now git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1639 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHook.inc | 2 ++ plugins/admin/fai/class_faiManagement.inc | 5 +++-- plugins/admin/fai/class_faiPartitionTable.inc | 2 ++ plugins/admin/fai/class_faiScript.inc | 2 ++ plugins/admin/fai/class_faiTemplate.inc | 2 ++ plugins/admin/fai/class_faiVariable.inc | 2 ++ 6 files changed, 13 insertions(+), 2 deletions(-) diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index c73378620..219593abe 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -88,9 +88,11 @@ class faiHook extends plugin $this->is_dialog=true; } + $_SESSION['objectinfo']= $this->dn; /* 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']; $this->is_dialog=true; } diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index bd5c1fb3b..1bb4fdc72 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -263,6 +263,7 @@ class faiManagement extends plugin $this->dialog= new $a_setup[0]($this->config, $this->config->data['TABS'][$a_setup[2]],$this->dn); $this->is_dialog = true; + $_SESSION['objectinfo'] = $this->dn; } @@ -342,9 +343,9 @@ class faiManagement extends plugin unset($this->dialog); $this->dialog=NULL; $this->is_dialog = false; + unset($_SESSION['objectinfo']); } - /* This check if the given tab could be saved * If it was possible to save it, remove dialog object. * If it wasn't possible, show errors and keep dialog. @@ -360,10 +361,10 @@ class faiManagement extends plugin unset($this->dialog); $this->dialog=NULL; $this->is_dialog=false; + unset($_SESSION['objectinfo']); } } - /* If dialog is set, but $this->is_dialog==false, then * only the "abort" button is shown, this are dialogs that must not be saved. * If is_dialog == true, we are currently editing tab objects. diff --git a/plugins/admin/fai/class_faiPartitionTable.inc b/plugins/admin/fai/class_faiPartitionTable.inc index 8d1649e3f..dcafa6a56 100644 --- a/plugins/admin/fai/class_faiPartitionTable.inc +++ b/plugins/admin/fai/class_faiPartitionTable.inc @@ -96,6 +96,7 @@ class faiPartitionTable extends plugin /* Edit disk. * Open dialog which allows us to edit the selected entry */ + $_SESSION['objectinfo'] = $this->dn; if((isset($_POST['EditDisk']))&&(isset($_POST['disks']))){ $usedDiskNames =array(); foreach($this->disks as $key=>$disk){ @@ -104,6 +105,7 @@ class faiPartitionTable extends plugin } } $this->dialog = new faiPartitionTableEntry($this->config,$this->dn,$usedDiskNames,$this->disks[$_POST['disks']]); + $_SESSION['objectinfo'] = $this->disks[$_POST['disks']]['dn']; $this->is_dialog = true; } diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 34bfe405a..6e5c754cc 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -89,9 +89,11 @@ class faiScript extends plugin $this->is_dialog=true; } + $_SESSION['objectinfo'] = $this->dn; /* 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']; $this->is_dialog=true; } diff --git a/plugins/admin/fai/class_faiTemplate.inc b/plugins/admin/fai/class_faiTemplate.inc index 1ee396e19..cf8623305 100644 --- a/plugins/admin/fai/class_faiTemplate.inc +++ b/plugins/admin/fai/class_faiTemplate.inc @@ -87,9 +87,11 @@ class faiTemplate extends plugin $this->is_dialog=true; } + $_SESSION['objectinfo'] = $this->dn; /* 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']; $this->is_dialog=true; } diff --git a/plugins/admin/fai/class_faiVariable.inc b/plugins/admin/fai/class_faiVariable.inc index 7d4f8fb62..6c47c6f33 100644 --- a/plugins/admin/fai/class_faiVariable.inc +++ b/plugins/admin/fai/class_faiVariable.inc @@ -85,9 +85,11 @@ class faiVariable extends plugin $this->is_dialog=true; } + $_SESSION['objectinfo'] = $this->dn; /* 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']; $this->is_dialog=true; } -- 2.30.2