Skip to content

Commit 76d3138

Browse files
sidneymarieannem1guelpf
authored andcommitted
Fix method to add a list to issues boards
1 parent dc645f2 commit 76d3138

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Gitlab/Api/IssueBoards.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,10 @@ public function showList($project_id, $board_id, $list_id)
4848
public function createList($project_id, $board_id, $label_id)
4949
{
5050
$params = array(
51-
'id' => $project_id,
52-
'board_id' => $board_id,
5351
'label_id' => $label_id
5452
);
5553

56-
return $this->get($this->getProjectPath($project_id, 'boards/'.$this->encodePath($board_id).'/lists'), $params);
54+
return $this->post($this->getProjectPath($project_id, 'boards/'.$this->encodePath($board_id).'/lists'), $params);
5755
}
5856

5957
/**

0 commit comments

Comments
 (0)