From 57c40cb28148e82c26847214d6f8f7bfb2b1d3cd Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 27 Apr 2006 06:25:37 +0000 Subject: [PATCH] Updated for non-single value git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3137 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_workstationGeneric.inc | 5 +++++ plugins/admin/systems/class_workstationStartup.inc | 2 +- plugins/admin/systems/workstationStartup.tpl | 12 ++++++------ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index 0748e9138..02374a3db 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -73,6 +73,11 @@ class workgeneric extends plugin $this->base= preg_replace ("/^[^,]+,[^,]+,[^,]+,/", "", $this->dn); } + /* Workaround for not single-value attribute gotoNtpServer */ + if (isset($this->attrs['gotoNtpServer'][0])){ + $this->gotoNtpServer= $this->attrs['gotoNtpServer'][0]; + } + /* Save 'dn' for later referal */ $this->orig_dn= $this->dn; } diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 9b9ffacfe..0fa75c4b4 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -557,7 +557,7 @@ class workstartup extends plugin /* Create divSelectBox for ldap server selection */ $SelectBoxLdapServer = new divSelectBox("LdapServer"); - $SelectBoxLdapServer->SetHeight(80); + $SelectBoxLdapServer->SetHeight(130); /* Set first entry as selected, if $this->gotoLdapServer is empty * or given entry is no longer available ... diff --git a/plugins/admin/systems/workstationStartup.tpl b/plugins/admin/systems/workstationStartup.tpl index ae77f1aec..c27a8ce2a 100644 --- a/plugins/admin/systems/workstationStartup.tpl +++ b/plugins/admin/systems/workstationStartup.tpl @@ -4,11 +4,6 @@

{t}Boot parameters{/t}

- - - - + + +

- {$SelectBoxLdapServer} -
@@ -20,9 +15,14 @@

+ {$SelectBoxLdapServer} +
-- 2.30.2