From 45e7b6402bf3e9a6ffc7d2a0c18d52613ee87079 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 8 Oct 2008 10:59:51 +0000 Subject: [PATCH] Updated workService. -Allow to save gotoLpdEnable git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12627 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/goto/class_workstationService.inc | 11 ++++++++++- .../goto/admin/systems/goto/gotoLpdEnable.tpl | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc index 4cb2df0c2..3897dfe71 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc @@ -37,7 +37,7 @@ class workservice extends plugin /* attribute list for save action */ - var $attributes= array("gotoXMonitor", + var $attributes= array("gotoXMonitor","gotoLpdEnable", "gotoXDriver", "gotoXResolution", "gotoXColordepth", "gotoXHsync", "gotoXVsync", "gotoScannerEnable", "gotoScannerClients", @@ -63,6 +63,15 @@ class workservice extends plugin "1400x1050" => "1400x1050", "1600x1200" => "1600x1200"); + /* Load gotoLpdEnable + */ + $this->gotoLpdEnable = array(); + if(isset($this->attrs['gotoLpdEnable']['count'])){ + for($i = 0 ; $i < $this->attrs['gotoLpdEnable']['count']; $i ++){ + $this->gotoLpdEnable[] = $this->attrs['gotoLpdEnable'][$i]; + } + } + if($this->config->get_cfg_value("resolutions") != ""){ $file = $this->config->get_cfg_value("resolutions"); diff --git a/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl b/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl index 48910843c..7c29c989b 100644 --- a/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl +++ b/gosa-plugins/goto/admin/systems/goto/gotoLpdEnable.tpl @@ -3,7 +3,7 @@ {else} -
+ -- 2.30.2
{t}Device{/t} #