Skip to content

Update fromArray method to handle correct 'shared_with_groups' field … #474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 30, 2020

Conversation

donkidd
Copy link
Contributor

@donkidd donkidd commented Jan 8, 2020

This change is to Fixes #466 when creating a project fromArray that is "shared_with_groups" array is filled in. The code originally expected the fields to be named id but instead gitlab named the values in the attribute to be group_id. I updated the "FromArray" code so if there are values in the "shared_with_groups" attribute and removed the group_ from the field names before passing it to create a group.

@m1guelpf m1guelpf merged commit f363461 into GitLabPHP:master Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Calling API for a Project that is shared with a Group fails
2 participants