Code

Added branches container for old stuff
[gosa.git] / gosa-plugins / fai / admin / fai / tabsTemplate.inc
index 8b1af36e39ab540a766b223941e7646bb00d91ee..2f16a564c3460c2c6921d4f5c53bdc1af8a3aca0 100644 (file)
@@ -3,13 +3,14 @@
 class tabsTemplate extends tabs
 {
   var $base= "";
+  var $parent ="";
 
   function tabsTemplate($config, $data, $dn,$category)
   {
        tabs::tabs($config, $data, $dn, $category);
 
        /* Add references/acls/snapshots */
-       $this->addSpecialTabs();
+#      $this->addSpecialTabs();
   }
 
   function check($ignore_account= FALSE)
@@ -21,13 +22,7 @@ class tabsTemplate extends tabs
   function save($ignore_account= FALSE)
   {
        $baseobject= $this->by_object['faiTemplate'];
-
-       $new_dn= 'cn='.$baseobject->cn.",".get_ou('faitemplateou').get_ou('faiou').session::get('CurrentMainBase');
-
-       $faifilter = session::get('faifilter');
-       if($faifilter['branch']!="main"){
-               $new_dn ='cn='.$baseobject->cn.",".get_ou('faitemplateou').$faifilter['branch'];
-       }
+       $new_dn ='cn='.$baseobject->cn.",".get_ou('faitemplateou').$this->parent->fai_release;
 
        if ($this->dn != $new_dn && $this->dn != "new"){