From b29e02fc461d92a33679a3d7d1407d14185cb7f5 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 15 May 2013 14:25:11 +0800 Subject: Bug 797840: Replying to a comment on Splinter always replies to the first comment --- extensions/Splinter/web/splinter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/Splinter') diff --git a/extensions/Splinter/web/splinter.js b/extensions/Splinter/web/splinter.js index fdea47cc6..a3220a158 100644 --- a/extensions/Splinter/web/splinter.js +++ b/extensions/Splinter/web/splinter.js @@ -681,7 +681,7 @@ Splinter.Review.Comment.prototype = { var hunk = this.getHunk(); var line = hunk.lines[this.location - hunk.location]; for (i = 0; i < line.reviewComments.length; i++) { - var comment = line.reviewComments[0]; + var comment = line.reviewComments[i]; if (comment === this) { return null; } -- cgit v1.2.3-24-g4f1b