diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc b/trunk/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc
index 93591bea411fd1262eba0feda01f1c14255262a6..977da93fd5ae0179b43cc43f38030448f28caa55 100644 (file)
$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){
}
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;
/* Workaround to fill in inherited values if we've specified an objectclass */
$SelectedSystemType = session::get("SelectedSystemType");
if (isset($SelectedSystemType['ogroup']) && $SelectedSystemType['ogroup'] != 'none'){
+ $this->XDrivers=array('default' => _("inherited"));
$this->XResolutions= array('default' => _("inherited"));
$this->XColordepths= array('default' => _("inherited"));
$this->XKbModels= array('default' => _("inherited"));
/* Strip out 'default' values */
foreach(array(
"gotoXDriver", "gotoXResolution", "gotoXColordepth",
- "gotoXKbModel", "gotoXKbLayout",
+ "gotoXKbModel", "gotoXKbLayout", "gotoXDriver",
"gotoXKbVariant", "gotoXMouseType", "gotoXMouseport") as $val){
if ($this->attrs[$val] == "default"){