From b295f1d63e47bba21b9a577f2bb93ff583f19f12 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 11 May 2009 05:43:12 +0000 Subject: [PATCH] Allow inheritance of gotoXDriver git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13639 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/goto/class_workstationService.inc | 12 ++++++++++-- .../goto/admin/systems/goto/workstationService.tpl | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc index ff80bbc62..41f00a8f8 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc @@ -184,7 +184,7 @@ class workservice extends plugin $ldap->search("(&(objectClass=gotoWorkstationTemplate)(member=".LDAP::prepare4filter($this->dn)."))"); if ($ldap->count() == 1){ $map= array("gotoXResolution", "gotoXColordepth", "gotoXKbModel", "gotoXKbLayout", - "gotoXKbVariant", "gotoXMouseType", "gotoXMouseport"); + "gotoXKbVariant", "gotoXMouseType", "gotoXMouseport", "gotoXDriver"); $attrs= $ldap->fetch(); foreach ($map as $name){ @@ -193,6 +193,9 @@ class workservice extends plugin } switch ($name){ + case 'gotoXDriver': + $this->XDrivers= array('default' => _("inherited").' ['.$attrs[$name][0].']' ) + $this->XDrivers; + break; case 'gotoXResolution': $this->XResolutions= array('default' => _("inherited").' ['.$attrs[$name][0].']' ) + $this->XResolutions; break; @@ -478,8 +481,13 @@ class workservice extends plugin "i128", "i740", "i810", "intel", "imstt", "mga", "neomagic", "newport", "nsc", "nv", "nvidia", "r128", "radeon", "rendition", "s3", "s3virge", "savage", "siliconmotion", "sis", "tdfx", "tga", "trident", "tseng", "vesa", "vga", "vmware"); + } + $tmp = array(); + foreach($drivers as $name){ + $tmp[$name] = $name; } - return($drivers); + + return($tmp); } diff --git a/gosa-plugins/goto/admin/systems/goto/workstationService.tpl b/gosa-plugins/goto/admin/systems/goto/workstationService.tpl index 19d3896b1..b0172630c 100644 --- a/gosa-plugins/goto/admin/systems/goto/workstationService.tpl +++ b/gosa-plugins/goto/admin/systems/goto/workstationService.tpl @@ -112,7 +112,7 @@ {render acl=$gotoXDriverACL} {/render} -- 2.30.2