From: hickert Date: Mon, 13 Oct 2008 07:30:46 +0000 (+0000) Subject: Updated Group Application Handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=54233b2f27c298ce778f03921b9e610dbab8c7e1;p=gosa.git Updated Group Application Handling -Ldap error messages were always displayed as type "removei failed" -Couldn't copy or edit any tagged Apps. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12669 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc index 3ec0ce61e..bb8937f09 100644 --- a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc +++ b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc @@ -1335,12 +1335,13 @@ class appgroup extends plugin /* Add new entries */ foreach($Actions['Add'] as $dn => $data){ + $this->tag_attrs($data,$dn,$this->gosaUnitTag); $ldap->cd($dn); $ldap->cat($dn); if(!$ldap->count()){ $ldap->add($data); if (!$ldap->success()){ - msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $dn, LDAP_DEL, get_class())); + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $dn, LDAP_ADD, get_class())); } } } @@ -1348,12 +1349,13 @@ class appgroup extends plugin /* Modify entries */ foreach($Actions['Edit'] as $dn => $data){ + $this->tag_attrs($data,$dn,$this->gosaUnitTag); $ldap->cd($dn); $ldap->cat($dn); if($ldap->count()){ $ldap->modify($data); if (!$ldap->success()){ - msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $dn, LDAP_DEL, get_class())); + msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $dn, LDAP_MOD, get_class())); } } }