Code

Corrected path
[gosa.git] / gosa-core / plugins / admin / applications / tabs_application.inc
index 1683c5ef073e2aa49dd65277342343a67fc896d3..5b6e82989e9129b09615e9bd925f06f9a4bd92b8 100644 (file)
@@ -27,11 +27,12 @@ class apptabs extends tabs
     /* Check for new 'dn', in order to propagate the
        'dn' to all plugins */
     $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
-    if((!empty($tmp)) && (isset($_SESSION['appfilter']['release']))){
+    $appfilter = session::get('appfilter');
+    if((!empty($tmp)) && (isset($appfilter['release']))){
       if(!$baseobject->isReleaseApplikation){
         $new_dn= "cn=".$baseobject->cn.",".get_ou('applicationou').$baseobject->base;
       }else{
-        $new_dn ="cn=".$baseobject->cn.",".$_SESSION['appfilter']['release'];
+        $new_dn ="cn=".$baseobject->cn.",".$appfilter['release'];
       }
     }else{
       $new_dn= "cn=".$baseobject->cn.",".get_ou('applicationou').$baseobject->base;
@@ -51,10 +52,6 @@ class apptabs extends tabs
     }
 
     tabs::save();
-
-    /* Fix tagging if needed */
-    $baseobject->dn= $this->dn;
-    $baseobject->handle_object_tagging();
   }
 
 }