Code

this should do it.
[gosa.git] / plugins / admin / fai / class_faiVariable.inc
index a63534dda7ca89876d30d4abe9bd6e3f97f59cf3..fdf650198cee305ddb4104f1f881e474eebeafa6 100644 (file)
@@ -78,6 +78,7 @@ class faiVariable extends plugin
   {
        /* Call parent execute */
        plugin::execute();
+
     /* Fill templating stuff */
     $smarty= get_smarty();
     $display= "";
@@ -88,7 +89,11 @@ class faiVariable 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']]);