X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Ffai%2FtabsVariable.inc;h=c41a7f78c307c4fe012b238f00a7df70b3df376b;hb=78fd52f682986d25fb95c171757d58384f7f58f8;hp=cf4f2b910ca1a70ce2d981837ed8442700b7d880;hpb=577dff940a258beec4ea8ca380556a891b121452;p=gosa.git diff --git a/plugins/admin/fai/tabsVariable.inc b/plugins/admin/fai/tabsVariable.inc index cf4f2b910..c41a7f78c 100644 --- a/plugins/admin/fai/tabsVariable.inc +++ b/plugins/admin/fai/tabsVariable.inc @@ -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 ) */