Announcements to group: wrong number of recipients
When an announcement is sent to one or more groups, other users not in those groups get the announcement too.
Also, the number of users per group displayed in the show_to_form is totally wrong.
Cause: error in SQL statement in course.lib.php, function function get_group_list_of_course($course_code, $session_id = 0)
needs an extra select on the course-id in the group_rel_user table or otherwise groups from other courses are added to the count!
BUT IF THIS SOLVES the mail-to-users-outside-group issue needs to be tested further.
r 8f911637b84c main/inc/lib/course.lib.php a/main/inc/lib/course.lib.php Tue Aug 28 17:26:29 2012 ++ b/main/inc/lib/course.lib.php Fri Sep 07 20:37:35 2012 AND gu.c_id = $course_id
GROUP BY g.id
ORDER BY g.name";
$result = Database::query($sql);
Updated by Jan Derriks almost 7 years ago
announcement problem was:
If you send an announcement to groups BUT NO SINGLE USER, then the announcement will be sent to ALL users.
This is already fixed in 5394: http://support.chamilo.org/issues/5394
It would help if all issues are in English and use english Chamilo-terms like "announcement" so they can be searched better.