Skip to content

Commit dcef0b5

Browse files
authored
Merge pull request #255 from phsteffen/master
Issues API: Bugfixing in update and show an issue (Issue: #254)
2 parents 70aeb9f + 9e71e3a commit dcef0b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Gitlab/Model/Issue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __construct(Project $project, $id = null, Client $client = null)
8080
*/
8181
public function show()
8282
{
83-
$data = $this->client->issues()->show($this->project->id, $this->id);
83+
$data = $this->client->issues()->show($this->project->id, $this->iid);
8484

8585
return static::fromArray($this->getClient(), $this->project, $data);
8686
}
@@ -91,7 +91,7 @@ public function show()
9191
*/
9292
public function update(array $params)
9393
{
94-
$data = $this->client->issues()->update($this->project->id, $this->id, $params);
94+
$data = $this->client->issues()->update($this->project->id, $this->iid, $params);
9595

9696
return static::fromArray($this->getClient(), $this->project, $data);
9797
}

0 commit comments

Comments
 (0)