diff --git a/gosa-plugins/goto/admin/applications/tabs_application.inc b/gosa-plugins/goto/admin/applications/tabs_application.inc
index 21891310ae429bf4cc385550cd47ac8699ff56dd..bf7a311f27bc76114d6e7572b4b39ee82ffbf475 100644 (file)
/* Check for new 'dn', in order to propagate the
'dn' to all plugins */
- if($this->parent->IsReleaseManagementActivated()){
- $new_dn= "cn=".$baseobject->cn.",".$this->parent->app_release;
+ if($baseobject->parent->parent->IsReleaseManagementActivated()){
+ $new_dn= "cn=".$baseobject->cn.",".$baseobject->parent->parent->app_release;
}else{
$new_dn= "cn=".$baseobject->cn.",".get_ou('applicationRDN').$baseobject->base;
}
-
- /* Move group? */
+
+ // Do we have to move the object?
if ($this->dn != $new_dn){
-
- /* Write entry on new 'dn' */
if ($this->dn != "new"){
$baseobject->move($this->dn, $new_dn);
$this->by_object['application']= $baseobject;
}
-
- /* Happen to use the new one */
$this->dn= $new_dn;
}