From: hickert Date: Fri, 8 Jan 2010 16:22:47 +0000 (+0000) Subject: Reenabled editing of systems X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=037e62d2f44d6b1441607155d71010a23c36a90c;p=gosa.git Reenabled editing of systems git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15129 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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"),