Code

workaround send_user_msg: no handling of groups
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Apr 2008 15:06:29 +0000 (15:06 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 29 Apr 2008 15:06:29 +0000 (15:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10730 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/gosaTriggered.pm

index 449e5430a9ea713da0a270715c0b6751a1995ccf..a796deef963a51d6d1e225dce5672ad87910a36a 100644 (file)
@@ -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,