Code

Fixed some typos
[gosa.git] / plugins / admin / fai / class_faiScript.inc
index 015e192afbbcde7784ba4329c57583278fb7d50f..bd2ebf893b2aef9c60421eac6f799f9d3a808ab1 100644 (file)
@@ -84,6 +84,7 @@ class faiScript extends plugin
   {
        /* Call parent execute */
        plugin::execute();
+
     /* Fill templating stuff */
     $smarty= get_smarty();
     $display= "";
@@ -94,7 +95,11 @@ class faiScript extends plugin
       $this->is_dialog=true;
     }
 
-    $_SESSION['objectinfo'] = $this->dn;
+    if($this->dn != "new"){
+      $_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']]);