Code

Fixed uid/cn bug
[gosa.git] / plugins / admin / systems / class_terminalService.inc
index c84058364d15ee3add066d836fa61f17074076e9..2779986921f66762e73301db26a4224c31ede072 100644 (file)
@@ -62,9 +62,9 @@ class termservice extends plugin
   var $objectclasses= array("GOhard");
 
 
-  function termservice ($config, $dn= NULL)
+  function termservice ($config, $dn= NULL, $parent= NULL)
   {
-    plugin::plugin ($config, $dn);
+    plugin::plugin ($config, $dn, $parent);
     
     array_unshift($this->XDrivers, "["._("unknown")."]");
     
@@ -194,6 +194,8 @@ class termservice extends plugin
     $this->hardware_list["automatic"]= _("automatic");
     ksort($this->hardware_list);
 
+    /* Convert gotoLpdEnable */
+    $this->gotoLpdEnable= ($this->gotoLpdEnable == "yes");
 
       /* Load hardware list */
     $ldap= $this->config->get_ldap_link();
@@ -407,6 +409,9 @@ 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);