diff --git a/gosa-plugins/goto/admin/systems/goto/class_ArpNewDevice.inc b/gosa-plugins/goto/admin/systems/goto/class_ArpNewDevice.inc
index 33004b8b205f1ce3b15732375efdf977bb54a43a..fb9a41b58f807669c0d72c52ed884a408a424eac 100644 (file)
function ArpNewDevice ($config, $dn= NULL, $parent= NULL)
{
plugin :: plugin($config,$dn);
- $this->cn ="";
$this->netConfigDNS = new termDNS($this->config,$this,$this->objectclasses);
$this->acl = "#all#";
$this->netConfigDNS->acl = $this->acl;
$message= plugin::check();
$message= array_merge($message, $this->netConfigDNS->check());
if(empty($this->cn)){
- $message[] = _("Please specify a valid dns name.");
+ $message[] = msgPool::required(_("Name"));
}
return($message);
}
$ldap = $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
$ldap->rmdir_recursive($this->dn);
- show_ldap_error($ldap->get_error(),_("Could not remove arp-alert device after writing dns and dhcp configuration."));
+ if (!$ldap->success()){
+ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $key->dn, LDAP_DEL, get_class()));
+ }
}
}