Code

Removed samba properties
[gosa.git] / plugins / admin / fai / tabsHook.inc
index cae153ef2956f11b8b608cc5340836421dc4bfec..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,7 @@ class tabsHook extends tabs
   {
        $baseobject= $this->by_object['faiHook'];
 
-       $new_dn= 'cn='.$baseobject->cn.",ou=hooks,ou=fai,ou=configs,ou=systems,".$_SESSION['faifilter']['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'];
@@ -33,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;