Skip to content

Commit 5759335

Browse files
author
Jaime
committed
use iid instead id on Issue model.
1 parent 4f5e883 commit 5759335

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
@@ -135,7 +135,7 @@ public function reopen()
135135
*/
136136
public function addComment($comment)
137137
{
138-
$data = $this->client->issues()->addComment($this->project->id, $this->id, array(
138+
$data = $this->client->issues()->addComment($this->project->id, $this->iid, array(
139139
'body' => $comment
140140
));
141141

@@ -148,7 +148,7 @@ public function addComment($comment)
148148
public function showComments()
149149
{
150150
$notes = array();
151-
$data = $this->client->issues()->showComments($this->project->id, $this->id);
151+
$data = $this->client->issues()->showComments($this->project->id, $this->iid);
152152

153153
foreach ($data as $note) {
154154
$notes[] = Note::fromArray($this->getClient(), $this, $note);

0 commit comments

Comments
 (0)