Code

Updated post handling
[gosa.git] / gosa-plugins / goto / admin / devices / tabs_devices.inc
index 0feddfc4eaab39583ae0e401fb5764605f65735f..518fe8469ca755c0dc3fef872d30a5158d3dfc0a 100644 (file)
@@ -4,9 +4,9 @@ class devicetabs extends tabs
 {
   var $Release= "";
 
-  function devicetabs($config, $data, $dn,$category)
+  function devicetabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
   {
-    tabs::tabs($config, $data, $dn,$category);
+    tabs::tabs($config, $data, $dn,$category,$hide_refs, $hide_acls);
 
     /* Add references/acls/snapshots */
     $this->addSpecialTabs();
@@ -15,7 +15,7 @@ class devicetabs extends tabs
   function save($ignore_account= FALSE)
   {
     $baseobject= $this->by_object['deviceGeneric'];
-    $new_dn= "cn=".$baseobject->cn.",".get_ou('deviceou').$baseobject->base;
+    $new_dn= "cn=".$baseobject->cn.",".get_ou("deviceGeneric", "deviceRDN").$baseobject->base;
 
     /* Move group? */
     if ($this->dn != $new_dn){