Skip to content

Commit 9e71e3a

Browse files
committed
Issues API: Bugfixing in update and show an issue
need the `iid` (not the `id`) for `show()` and `update()`. See also: - for show: https://docs.gitlab.com/ee/api/issues.html#single-issue - for update: https://docs.gitlab.com/ee/api/issues.html#edit-issue
1 parent 70aeb9f commit 9e71e3a

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)