X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fsystems%2Fadmin%2Fsystems%2Fclass_componentGeneric.inc;h=dbd26c814ced2f56530ce1c165686396a2739638;hb=362e2b9a81d3bde32512811ede7525ab017eead5;hp=5815a4a90ed5cfec54b70cf46eed28ea658a658a;hpb=a063e95e6a1e33c48ca144f34a8e734189440f4f;p=gosa.git diff --git a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc index 5815a4a90..dbd26c814 100644 --- a/gosa-plugins/systems/admin/systems/class_componentGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_componentGeneric.inc @@ -151,7 +151,10 @@ class componentGeneric extends plugin new log("remove","component/".get_class($this),$this->dn,$this->attributes,$ldap->get_error()); - show_ldap_error($ldap->get_error(), sprintf(_("Removing of system component/generic with dn '%s' failed."),$this->dn)); + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, LDAP_DEL, get_class())); + } + $this->handle_post_events(array("macAddress" => $this->netConfigDNS->macAddress,"ipHostNumber" => $this->netConfigDNS->ipHostNumber)); /* Delete references to object groups */ @@ -285,7 +288,9 @@ class componentGeneric extends plugin $this->netConfigDNS->cn = $this->cn; $this->netConfigDNS->save(); - show_ldap_error($ldap->get_error(), sprintf(_("Saving of system component/generic with dn '%s' failed."),$this->dn)); + if (!$ldap->success()){ + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class())); + } } /* Return plugin informations for acl handling */