diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py --- a/rhodecode/model/comment.py +++ b/rhodecode/model/comment.py @@ -84,7 +84,9 @@ class ChangesetCommentsModel(BaseModel): def get_inline_comments(self, repo_id, revision): comments = self.sa.query(ChangesetComment)\ .filter(ChangesetComment.repo_id == repo_id)\ - .filter(ChangesetComment.revision == revision).all() + .filter(ChangesetComment.revision == revision)\ + .filter(ChangesetComment.line_no != None)\ + .filter(ChangesetComment.f_path != None).all() paths = defaultdict(lambda:defaultdict(list)) diff --git a/rhodecode/templates/changeset/changeset.html b/rhodecode/templates/changeset/changeset.html --- a/rhodecode/templates/changeset/changeset.html +++ b/rhodecode/templates/changeset/changeset.html @@ -161,7 +161,9 @@ ${h.form(h.url('changeset_comment', repo_name=c.repo_name, revision=c.changeset.raw_id))} ${_('Leave a comment')}