index cb6dcf3028a4d2f3b5dff77f8a7ad23d00f9a903..22a34d2c9690ceac786eca76a8caa68a85773dc6 100644 (file)
{
$baseobject= $this->by_object['faiScript'];
- $new_dn= 'cn='.$baseobject->cn.",ou=scripts,ou=fai,ou=configs,ou=systems,".$_SESSION['config']->current['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"){