Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
308a07f3
Commit
308a07f3
authored
Aug 08, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure all group settings panels remain open after form submission
parent
9c0f5271
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
app/controllers/groups_controller.rb
app/controllers/groups_controller.rb
+1
-1
app/views/groups/settings/_general.html.haml
app/views/groups/settings/_general.html.haml
+1
-0
app/views/groups/settings/_permissions.html.haml
app/views/groups/settings/_permissions.html.haml
+1
-0
No files found.
app/controllers/groups_controller.rb
View file @
308a07f3
...
...
@@ -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!
...
...
app/views/groups/settings/_general.html.haml
View file @
308a07f3
=
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
...
...
app/views/groups/settings/_permissions.html.haml
View file @
308a07f3
=
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment