index f0c16646ead262b45a8019717aeb0fcffa1fc3a7..57a5c6e96ddc67db5d2ce550f69680e6881e0931 100644 (file)
function tabsPackage($config, $data, $dn)
{
tabs::tabs($config, $data, $dn);
+
+ /* Add references/acls/snapshots */
+ $this->addSpecialTabs();
}
function check()
{
$baseobject= $this->by_object['faiPackage'];
- $branch = "";
+ $new_dn= 'cn='.$baseobject->cn.",ou=packages,ou=fai,ou=configs,ou=systems,".$_SESSION['CurrentMainBase'];
if($_SESSION['faifilter']['branch']!="main"){
- $branch = "ou=".$_SESSION['faifilter']['branch'].",";
+ $new_dn ='cn='.$baseobject->cn.",ou=packages,".$_SESSION['faifilter']['branch'];
}
-
- $new_dn= 'cn='.$baseobject->cn.",ou=packages,".$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 ) */
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;