Permalink
Browse files

fix(groups): membership request accepted has link in site_notifications

When a membership request was accepted by the group owner the site
notification didn't have a link to the group.

fixes #7267
  • Loading branch information...
jeabakker committed Aug 11, 2015
1 parent 61a8484 commit 6e0d6f4ab8217d02f5b294904b4cfff975cc867e
Showing with 6 additions and 1 deletion.
  1. +6 −1 mod/groups/actions/groups/membership/add.php
@@ -30,9 +30,14 @@
$group->name,
$group->getURL(),
), $user->language);
+
+ $params = [
+ 'action' => 'add_membership',
+ 'object' => $group,
+ ];
// Send welcome notification to user
- notify_user($user->getGUID(), $group->owner_guid, $subject, $body);
+ notify_user($user->getGUID(), $group->owner_guid, $subject, $body, $params);
system_message(elgg_echo('groups:addedtogroup'));
}

0 comments on commit 6e0d6f4

Please sign in to comment.