Code

Added gray out to navigation icons in divlist
[gosa.git] / plugins / admin / systems / tabs_phone.inc
index 60ccd3305945055d308ee8094cbb4eb686d452f4..cc408f60fdfc7c103dc060cdba8d32117b3be9e7 100644 (file)
@@ -3,9 +3,12 @@
 class phonetabs extends tabs
 {
 
-  function phonetabs($config, $data, $dn)
+  function phonetabs($config, $data, $dn,$category)
   {
-    tabs::tabs($config, $data, $dn);
+    tabs::tabs($config, $data, $dn,$category);
+
+    /* Add references/acls/snapshots */
+    $this->addSpecialTabs();
   }
 
   function save_object($save_current= FALSE)
@@ -20,12 +23,16 @@ class phonetabs extends tabs
        'dn' to all plugins */
     $baseobject= $this->by_object['phonegeneric'];
     $this->dn= "cn=$baseobject->cn,ou=phones,ou=systems,".$baseobject->base;
+    $baseobject->dn= $this->dn;
 
     foreach ($this->by_object as $key => $obj){
       $this->by_object[$key]->dn= $this->dn;
     }
 
     tabs::save(TRUE);
+
+    /* Fix tagging if needed */
+    $baseobject->handle_object_tagging();
   }
 
 }