index cf4f2b910ca1a70ce2d981837ed8442700b7d880..b526884dfee468993c1b30d85884f1d672ba275b 100644 (file)
{
$baseobject= $this->by_object['faiVariable'];
- $branch = "";
+ $new_dn= 'cn='.$baseobject->cn.",ou=variables,ou=fai,ou=configs,ou=systems,".$_SESSION['faifilter']['base'];
+
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 ) */