From 98776cf37c7aa20b79d70b039a2730b733f738cc Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 13 Oct 2008 07:03:52 +0000 Subject: [PATCH] Updated Group Application Handling -Ldap error messages were always displayed as type "remove" -Couldn't copy or edit tagged Apps. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12667 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/groups/apps/class_groupApplication.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication.inc index 23754acb8..668683edc 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())); } } } -- 2.30.2