From: rettenbe Date: Tue, 29 Apr 2008 15:06:29 +0000 (+0000) Subject: workaround send_user_msg: no handling of groups X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f9e394a81352fd0ca7ed827d0d6a238653e122aa;p=gosa.git workaround send_user_msg: no handling of groups git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10730 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/server/events/gosaTriggered.pm b/gosa-si/server/events/gosaTriggered.pm index 449e5430a..a796deef9 100644 --- a/gosa-si/server/events/gosaTriggered.pm +++ b/gosa-si/server/events/gosaTriggered.pm @@ -106,17 +106,20 @@ sub send_user_msg { } # highlight user name and group name - @users = map("u_$_", @users); - my $users_list = join(",", @users); - @groups = map("g_$_", @groups); - my $groups_list = join(",", @groups); + my @receiver_l; + @users = map(push(@receiver_l, "u_$_"), @users); + #@groups = map(push(@receiver_l, "g_$_"), @groups); +# TODO +# handling, was passiert wenn in einer liste nix drin steht +# handling von groups hinzufügen + my $func_dic = {table=>$main::messaging_tn, primkey=>[], id=>$new_msg_id, subject=>$subject, message_from=>$from, - message_to=>"$users_list,$groups_list", + message_to=>join(",", @receiver_l), flag=>"n", direction=>"in", delivery_time=>$delivery_time,