From: hickert Date: Mon, 20 Nov 2006 04:18:17 +0000 (+0000) Subject: gotoLpdEnable will be stored as "Yes"/"No" again instead of boolean X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a46d6ee8b2480593941116e2f21051d729447c75;p=gosa.git 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 --- 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 */