Code

Updated
[gosa.git] / plugins / admin / fai / tabsHook.inc
index f438f82362ceea95f587634387bc4e675fbc4bb4..cae153ef2956f11b8b608cc5340836421dc4bfec 100644 (file)
@@ -19,7 +19,11 @@ class tabsHook extends tabs
   {
        $baseobject= $this->by_object['faiHook'];
 
-       $new_dn= 'cn='.$baseobject->cn.",ou=hooks,ou=fai,ou=configs,ou=systems,".$_SESSION['config']->current['BASE'];
+       $new_dn= 'cn='.$baseobject->cn.",ou=hooks,ou=fai,ou=configs,ou=systems,".$_SESSION['faifilter']['base'];
+       
+       if($_SESSION['faifilter']['branch']!="main"){
+               $new_dn ='cn='.$baseobject->cn.",ou=hooks,".$_SESSION['faifilter']['branch'];
+       }
 
        if ($this->dn != $new_dn && $this->dn != "new"){