Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:Automattic/vip-trac-code-comments

  • Loading branch information...
commit d3d82edeefe3ad62e750a429bff88565ad4b4826 2 parents 1b2b270 + e9c3573
Thorsten Ott authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 code_comments/comments.py
6 code_comments/comments.py
View
@@ -87,9 +87,9 @@ def get_ticket_relations(self):
db = self.env.get_db_cnx()
cursor = db.cursor()
query = """SELECT ticket FROM ticket_custom WHERE name = 'code_comment_relation' AND
- (value LIKE '%(comment_id)s' OR
- value LIKE '%(comment_id)s,%%' OR
- value LIKE '%%,%(comment_id)s' OR value LIKE '%%,%(comment_id)s,%%')""" % {'comment_id': self.id}
+ (value LIKE '%(comment_id)d' OR
+ value LIKE '%(comment_id)d,%%' OR
+ value LIKE '%%,%(comment_id)d' OR value LIKE '%%,%(comment_id)d,%%')""" % {'comment_id': self.id}
result = {}
@self.env.with_transaction()
def get_ticket_ids(db):
Please sign in to comment.
Something went wrong with that request. Please try again.