Code

Reenabled editing of systems
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 8 Jan 2010 16:22:47 +0000 (16:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 8 Jan 2010 16:22:47 +0000 (16:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15129 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_systemManagement.inc

index 3845cef7b06118c69a13bf3846ea06d7711fdab2..b92bfd9156e31914d8acfbf0fdd9119c300d02dd 100644 (file)
@@ -85,10 +85,12 @@ class systemManagement extends management
 
   function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
   {
-    $headpage = $this->getHeadpage();
-    foreach($target as $id){
-      $type = $headpage->getType($id);
-      echo $type."<br>";
+    if(count($target) == 1){
+      $tInfo = $this->getObjectDefinitions();
+      $headpage = $this->getHeadpage();
+      $dn = $target[0];
+      $type = $tInfo[$headpage->getType($dn)];
+      return(management::editEntry($action,$target,$all,$type['tabClass'],$type['tabDesc'],$type['aclCategory']));
     }
   }
 
@@ -115,16 +117,6 @@ class systemManagement extends management
 
   public function getObjectDefinitions()
   {
-
-#       "workstation" =>  array(
-#           "RDN"       => get_ou('workstationRDN'),
-#           "CLASS"   => "WORKTABS",
-#           "TABNAME" => "workgeneric",
-#           "TABCLASS"=> "worktabs",
-#           "ACLC"    => "workstation",
-#           "ACL"     => "workstation/workgeneric" ),
-
-
     $tabs = array(
         "FAKE_OC_OpsiHost" => array(
           "ou"          => "",
@@ -162,7 +154,7 @@ class systemManagement extends management
             "ou"          => get_ou('printerRDN'),
             "plugClass"   => "printgeneric",
             "tabClass"    => "printtabs",
-            "tabDesc"     => "PRINTABS",
+            "tabDesc"     => "PRINTTABS",
             "aclClass"    => "printer",
             "aclCategory" => "printgeneric"),