Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Gitlab/Api/Issues.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public function all($project_id = null, $page = 1, $per_page = self::PER_PAGE, a

/**
* @param int $project_id
* @param int $issue_id
* @param int $issue_iid
* @return mixed
*/
public function show($project_id, $issue_id)
public function show($project_id, $issue_iid)
{
return $this->get($this->getProjectPath($project_id, 'issues?iid='.$this->encodePath($issue_id)));
return $this->get($this->getProjectPath($project_id, 'issues/'.$this->encodePath($issue_iid)));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Gitlab/Tests/Api/IssuesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function shouldShowIssue()
$api = $this->getApiMock();
$api->expects($this->once())
->method('get')
->with('projects/1/issues?iid=2')
->with('projects/1/issues/2')
->will($this->returnValue($expectedArray))
;

Expand Down