Skip to content

Commit

Permalink
Fixed addGroup() param validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmessner committed Jun 16, 2019
1 parent f4c0750 commit 85631bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/gitlab4j/api/GroupApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,8 @@ public Group addGroup(String name, String path) throws GitLabApiException {

public Group addGroup(Group group) throws GitLabApiException {
Form formData = new GitLabApiForm()
.withParam("name", group.getName())
.withParam("path", group.getPath())
.withParam("name", group.getName(), true)
.withParam("path", group.getPath(), true)
.withParam("description", group.getDescription())
.withParam("visibility", group.getVisibility())
.withParam("lfs_enabled", group.getLfsEnabled())
Expand Down Expand Up @@ -510,8 +510,8 @@ public Group addGroup(String name, String path, String description, Visibility v
Boolean lfsEnabled, Boolean requestAccessEnabled, Integer parentId) throws GitLabApiException {

Form formData = new GitLabApiForm()
.withParam("name", name)
.withParam("path", path)
.withParam("name", name, true)
.withParam("path", path, true)
.withParam("description", description)
.withParam("visibility", visibility)
.withParam("lfs_enabled", lfsEnabled)
Expand Down

0 comments on commit 85631bb

Please sign in to comment.