Commit 9c95720a authored by Nigel McNie's avatar Nigel McNie
Browse files

Add the reason why the user wants to belong to a group to the pending members page.

parent 68f67c88
......@@ -708,6 +708,9 @@ function group_get_membersearch_data($group, $query, $offset, $limit, $membershi
if ($membershiptype == 'request') {
foreach ($results['data'] as &$r) {
$r['addform'] = group_get_adduser_form($r['id'], $group);
// TODO: this will suck when there's quite a few on the page,
// would be better to grab all the reasons in one go
$r['reason'] = get_field('group_member_request', 'reason', 'group', $group, 'member', $r['id']);
$smarty->assign('membershiptype', $membershiptype);
......@@ -13,7 +13,7 @@
<p><strong>Joined:</strong> {$r.jointime}</p>
{elseif $membershiptype == 'request'}
<p>{str tag=hasrequestedmembership section=group}</p>
<p>{str tag=hasrequestedmembership section=group}.{if $r.reason} {str tag=reason}:<br> {$r.reason|format_whitespace}{/if}</p>
{elseif $membershiptype == 'invite'}
<p>{str tag=hasbeeninvitedtojoin section=group}</p>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment