Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
group
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
group
Merge requests
!109
Warning: foreach() argument must be of type array|object, null given
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Warning: foreach() argument must be of type array|object, null given
issue/group-3394724:3394724-warning-foreach-argument
into
3.2.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Shreya Thakur
requested to merge
issue/group-3394724:3394724-warning-foreach-argument
into
3.2.x
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
3.2.x
3.2.x (HEAD)
and
latest version
latest version
d88c91e2
1 commit,
1 year ago
1 file
+
2
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Entity/Storage/GroupRoleStorage.php
+
2
−
1
Options
@@ -110,7 +110,8 @@ class GroupRoleStorage extends ConfigEntityStorage implements GroupRoleStorageIn
$ids
=
[];
// Get the IDs from the 'group_roles' field, without loading the roles.
if
(
$membership
=
$this
->
groupMembershipLoader
->
load
(
$group
,
$account
))
{
$membership
=
$this
->
groupMembershipLoader
->
load
(
$group
,
$account
);
if
(
$membership
)
{
foreach
(
$membership
->
getGroupRelationship
()
->
group_roles
as
$group_role_ref
)
{
$ids
[]
=
$group_role_ref
->
target_id
;
}
Loading