Code

Fixed termDNS function definition.
[gosa.git] / plugins / admin / systems / class_workstationGeneric.inc
index 59427c35a9801c0bec207a38d351b99c2d8babb1..734a8459842e8ccf797df2f0fc2c9aca0a08cf56 100644 (file)
@@ -82,7 +82,7 @@ class workgeneric extends plugin
       $this->member_of_ogroup = $ldap->count() >= 1;
     }
 
-    $this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses);
+    $this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses);
 
     /* Read arrays */
     foreach (array("ghNetNic", "ghIdeDev", "ghScsiDev") as $val){
@@ -547,7 +547,7 @@ class workgeneric extends plugin
     }
 
     $this->netConfigDNS->cn = $this->cn;
-    $this->netConfigDNS->save($this->dn);
+    $this->netConfigDNS->save();
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of system workstation/generic with dn '%s' failed."),$this->dn));
   }