Changes between Initial Version and Version 2 of Ticket #4794
- Timestamp:
- Feb 20, 2007, 8:23:46 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4794 – Description
initial v2 1 1 If you have "#12222222 22222222" (I put the space in there only so trac's trac doesn't crash due to this same bug) on a Wiki page or in a subversion commit log, trac tries to look up that ticket number. If the number is larger than maxint, there is an error. This makes the revision log and the timeline unusable. I'm not sure if it is strictly a postfix problem or not. I fixed it by adding 2 2 {{{ 3 3 if long(target) < maxint 4 4 }}} 5 5 to api.py, just before: 6 6 {{{ 7 7 cursor = formatter.db.cursor() 8 8 cursor.execute("SELECT summary,status FROM ticket WHERE id=%s", … … 13 13 title=shorten_line(row[0]) + ' (%s)' % row[1], 14 14 href=formatter.href.ticket(target)) 15 15 }}} 16 16 and indenting those lines (at about line 215). Of course, I added "from sys import maxint" at the top. 17 17