Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
group-3397063
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
group-3397063
Commits
abb0e829
Commit
abb0e829
authored
2 years ago
by
Kristiaan Van den Eynde
Browse files
Options
Downloads
Patches
Plain Diff
Make sure permissions form items can't collide, prefix them appropriately.
parent
c752f18e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/GroupPermissionsForm.php
+2
-2
2 additions, 2 deletions
src/Form/GroupPermissionsForm.php
with
2 additions
and
2 deletions
src/Form/GroupPermissionsForm.php
+
2
−
2
View file @
abb0e829
...
...
@@ -190,7 +190,7 @@ abstract class GroupPermissionsForm extends FormBase {
$hide_descriptions
=
system_admin_compact_mode
();
foreach
(
$this
->
getPermissions
()
as
$provider
=>
$sections
)
{
// Print a full width row containing the provider name for each provider.
$form
[
'permissions'
][
$provider
]
=
[
$form
[
'permissions'
][
'module-'
.
$provider
]
=
[
[
'#wrapper_attributes'
=>
[
'colspan'
=>
count
(
$group_roles
)
+
1
,
...
...
@@ -203,7 +203,7 @@ abstract class GroupPermissionsForm extends FormBase {
foreach
(
$sections
as
$section_id
=>
$permissions
)
{
// Start each section with a full width row containing the section name.
$form
[
'permissions'
][
$section_id
]
=
[
$form
[
'permissions'
][
'section-'
.
$section_id
]
=
[
[
'#wrapper_attributes'
=>
[
'colspan'
=>
count
(
$group_roles
)
+
1
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment