ensure all group settings panels remain open after form submission
This commit is contained in:
parent
9c0f52714c
commit
308a07f365
|
|
@ -85,7 +85,7 @@ class GroupsController < Groups::ApplicationController
|
|||
|
||||
def update
|
||||
if Groups::UpdateService.new(@group, current_user, group_params).execute
|
||||
redirect_to edit_group_path(@group), notice: "Group '#{@group.name}' was successfully updated."
|
||||
redirect_to edit_group_path(@group, anchor: params[:update_section]), notice: "Group '#{@group.name}' was successfully updated."
|
||||
else
|
||||
@group.restore_path!
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
= form_for @group, html: { multipart: true, class: 'gl-show-field-errors' }, authenticity_token: true do |f|
|
||||
%input{ type: 'hidden', name: 'update_section', value: 'js-general-settings' }
|
||||
= form_errors(@group)
|
||||
|
||||
%fieldset
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
= form_for @group, html: { multipart: true, class: 'gl-show-field-errors' }, authenticity_token: true do |f|
|
||||
%input{ type: 'hidden', name: 'update_section', value: 'js-permissions-settings' }
|
||||
= form_errors(@group)
|
||||
|
||||
%fieldset
|
||||
|
|
|
|||
Loading…
Reference in New Issue