index f438f82362ceea95f587634387bc4e675fbc4bb4..0a2a6b772b81997dc2e7363e2d143232603bbc8c 100644 (file)
function tabsHook($config, $data, $dn)
{
tabs::tabs($config, $data, $dn);
+ /* Add references/acls/snapshots */
+ $this->addSpecialTabs();
}
function check()
{
$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"){
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;