Code

Added printer patch
[gosa.git] / plugins / admin / fai / tabsVariable.inc
index cf4f2b910ca1a70ce2d981837ed8442700b7d880..c41a7f78c307c4fe012b238f00a7df70b3df376b 100644 (file)
@@ -19,13 +19,12 @@ class tabsVariable extends tabs
   {
        $baseobject= $this->by_object['faiVariable'];
 
-       $branch = "";
+       $new_dn= 'cn='.$baseobject->cn.",ou=variables,ou=fai,ou=configs,ou=systems,".$_SESSION['CurrentMainBase'];
+       
        if($_SESSION['faifilter']['branch']!="main"){
-               $branch = "ou=".$_SESSION['faifilter']['branch'].",";
+               $new_dn ='cn='.$baseobject->cn.",ou=variables,".$_SESSION['faifilter']['branch'];
        }
-
-       $new_dn= 'cn='.$baseobject->cn.",ou=variables,".$branch."ou=fai,ou=configs,ou=systems,".$_SESSION['faifilter']['base'];
-       
+                       
        if ($this->dn != $new_dn && $this->dn != "new"){
                
                /* if( new_dn is subtree of this->dn ) */