Code

gotoLpdEnable wasn't saved as "Yes/No" it was saved as 1/0
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 20 Nov 2006 03:51:59 +0000 (03:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 20 Nov 2006 03:51:59 +0000 (03:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5154 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_terminalService.inc

index 2779986921f66762e73301db26a4224c31ede072..4beecf9e0d14c0ebbc70c4dff2336a3bb3235264 100644 (file)
@@ -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);