From 492133654424affe573db29aba364fdd8bdb3c83 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 20 Nov 2006 03:51:59 +0000 Subject: [PATCH] gotoLpdEnable wasn't saved as "Yes/No" it was saved as 1/0 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5154 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_terminalService.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/admin/systems/class_terminalService.inc b/plugins/admin/systems/class_terminalService.inc index 277998692..4beecf9e0 100644 --- a/plugins/admin/systems/class_terminalService.inc +++ b/plugins/admin/systems/class_terminalService.inc @@ -195,7 +195,7 @@ class termservice extends plugin ksort($this->hardware_list); /* Convert gotoLpdEnable */ - $this->gotoLpdEnable= ($this->gotoLpdEnable == "yes"); + $this->gotoLpdEnable= ($this->gotoLpdEnable == "Yes"); /* Load hardware list */ $ldap= $this->config->get_ldap_link(); @@ -396,6 +396,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 */ @@ -409,9 +412,6 @@ class termservice extends plugin } } - /* Convert to string */ - $this->gotoLpdEnable= $this->gotoLpdEnable?"yes":"no"; - /* Write back to ldap */ $ldap= $this->config->get_ldap_link(); $ldap->cd($this->dn); -- 2.30.2