Permalink
Browse files

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

  • Loading branch information...
2 parents 1b2b270 + e9c3573 commit d3d82edeefe3ad62e750a429bff88565ad4b4826 Thorsten Ott committed Jan 19, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 code_comments/comments.py
@@ -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):

0 comments on commit d3d82ed

Please sign in to comment.