From 037e62d2f44d6b1441607155d71010a23c36a90c Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 8 Jan 2010 16:22:47 +0000 Subject: [PATCH] Reenabled editing of systems git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15129 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/class_systemManagement.inc | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 3845cef7b..b92bfd915 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -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."
"; + 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"), -- 2.30.2