Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3b116c1

Browse files
authoredAug 9, 2017
Merge pull request #229 from cobak78/issue-228
use iid instead id on Issue model.
2 parents 4f5e883 + 5759335 commit 3b116c1

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)
Please sign in to comment.