Skip to content

Commit

Permalink
Merge pull request #904 from goalgorilla/feature/2973550-redirect-to-…
Browse files Browse the repository at this point in the history
…group-after-join

Issue #2973550 by Makishima: Fix redirection to the group after user join
  • Loading branch information
bramtenhove committed Jun 26, 2018
2 parents ad6e99e + bf260b3 commit 241733c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/social_features/social_group/social_group.module
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ function _social_group_action_form_submit($form, FormStateInterface $form_state)
// Get form that was submitted.
$complete_form = $form_state->getCompleteForm();

if (in_array($complete_form['#form_id'], ['group_content_' . $group->bundle() . '_membership_group-join_form', 'group_content_' . $group->bundle() . '-group_membership_add_form'])) {
if (in_array($complete_form['#form_id'], ['group_content_' . $group->bundle() . '-group_membership_group-join_form', 'group_content_' . $group->bundle() . '-group_membership_add_form'])) {
// Set redirect to group home page.
$form_state->setRedirect(
'entity.group.canonical',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ Feature: Create Open Group
And I should see the button "Cancel"
And I should see the button "Join group"
And I press "Join group"
And I should see "Test open group"
And I click "Test open group"
And I should see "Test open group" in the "Hero block"
And I should see the button "Joined"

# DS-643 As a LU I want to see the events of a group
Expand Down

0 comments on commit 241733c

Please sign in to comment.