Code

dn is shown in header now
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Oct 2005 10:32:47 +0000 (10:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 Oct 2005 10:32:47 +0000 (10:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1639 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiHook.inc
plugins/admin/fai/class_faiManagement.inc
plugins/admin/fai/class_faiPartitionTable.inc
plugins/admin/fai/class_faiScript.inc
plugins/admin/fai/class_faiTemplate.inc
plugins/admin/fai/class_faiVariable.inc

index c73378620babce208e4aace2fca6b2736d1f88cf..219593abe656f1d73bd035be523ea87eff0dc0af 100644 (file)
@@ -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;
     }
     
index bd5c1fb3b7ec890f60b1e3943a0426ed6dfbbf4c..1bb4fdc72085494d789db6f63ecf8b9558374ce8 100644 (file)
@@ -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.
index 8d1649e3f7d03f220c56df22c871e578b9d1d172..dcafa6a5673265b194034abf64e58002b39e7d58 100644 (file)
@@ -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;
     }
 
index 34bfe405a2ceb72a4d335b784a89728a365fa3a4..6e5c754cc535d7080eca5b15c099e49616625cce 100644 (file)
@@ -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;
     }
     
index 1ee396e1963496809da340dc198c74d3d42bae0b..cf8623305d9e06c91cf0bbb3bcc274c27b86bceb 100644 (file)
@@ -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;
     }
     
index 7d4f8fb628740b5a4f174f1ed1ff43c9430c3713..6c47c6f331a88586f864c9d90a614bdf7eb3f8d6 100644 (file)
@@ -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;
     }