From a46d6ee8b2480593941116e2f21051d729447c75 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 20 Nov 2006 04:18:17 +0000 Subject: [PATCH] gotoLpdEnable will be stored as "Yes"/"No" again instead of boolean git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5156 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_terminalService.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc index d449f089b..eb40ec0ac 100644 --- a/plugins/admin/systems/class_terminalService.inc +++ b/plugins/admin/systems/class_terminalService.inc @@ -194,8 +194,10 @@ class termservice extends plugin $this->hardware_list["automatic"]= _("automatic"); ksort($this->hardware_list); + /* Convert gotoLpdEnable */ + $this->gotoLpdEnable= preg_match("/yes/i",$this->gotoLpdEnable); - /* Load hardware list */ + /* Load hardware list */ $ldap= $this->config->get_ldap_link(); $ldap->cd($this->config->current['BASE']); $ldap->search("(&(objectClass=gotoWorkstationTemplate)(member=".$this->dn."))"); @@ -399,6 +401,9 @@ class termservice extends plugin /* Save to LDAP */ function save() { + /* Convert to string */ + $this->gotoLpdEnable= $this->gotoLpdEnable?"Yes":"No"; + plugin::save(); /* Strip out 'default' values */ -- 2.30.2