Code

Removed samba properties
[gosa.git] / plugins / admin / fai / tabsHook.inc
index f438f82362ceea95f587634387bc4e675fbc4bb4..0a2a6b772b81997dc2e7363e2d143232603bbc8c 100644 (file)
@@ -7,6 +7,8 @@ class tabsHook extends tabs
   function tabsHook($config, $data, $dn)
   {
        tabs::tabs($config, $data, $dn);
+       /* Add references/acls/snapshots */
+       $this->addSpecialTabs();
   }
 
   function check()
@@ -19,7 +21,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['CurrentMainBase'];
+       
+       if($_SESSION['faifilter']['branch']!="main"){
+               $new_dn ='cn='.$baseobject->cn.",ou=hooks,".$_SESSION['faifilter']['branch'];
+       }
 
        if ($this->dn != $new_dn && $this->dn != "new"){
                
@@ -29,7 +35,7 @@ class tabsHook extends tabs
                if((strstr($new_dn,$this->dn))&&($cnt1<$cnt2)){
                        print_red(_("Try to move tree failed. Destination tree is subtree of source tree."));
                }else{
-                       $baseobject->recursive_move($this->dn, $new_dn);
+//                     $baseobject->recursive_move($this->dn, $new_dn);
                }
        }
        $this->dn= $new_dn;