index b9a63d34bf78265dc162219924903188022d5a6e..22a34d2c9690ceac786eca76a8caa68a85773dc6 100644 (file)
{
$baseobject= $this->by_object['faiScript'];
{
$baseobject= $this->by_object['faiScript'];
- $new_dn= 'cn='.$baseobject->cn.",ou=scripts,ou=fai,ou=configs,ou=systems,".$_SESSION['faifilter']['base'];
+ $new_dn= 'cn='.$baseobject->cn.",ou=scripts,ou=fai,ou=configs,ou=systems,".$_SESSION['CurrentMainBase'];
+
+ if($_SESSION['faifilter']['branch']!="main"){
+ $new_dn ='cn='.$baseobject->cn.",ou=scripts,".$_SESSION['faifilter']['branch'];
+ }
if ($this->dn != $new_dn && $this->dn != "new"){
if ($this->dn != $new_dn && $this->dn != "new"){