Modify

Opened 5 years ago

Closed 5 years ago

#6613 closed defect (fixed)

Recognizing of ticket numbers is wrong

Reported by: cendalc Owned by: XayOn
Priority: normal Component: TicketBackLinksMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

For example, this ticket number link is not recognized: (#23)

Here is a patch to recognize it (line 47 of macro.py):

        sql += 'AND ( w1.text LIKE \'%%[ticket:%s]%%\' ' % thispage
        sql += 'OR (w1.text LIKE \'%%#%s%%\' )' % thispage
        sql += 'AND w1.text NOT LIKE \'%%#%s0%%\'' % thispage
        sql += 'AND w1.text NOT LIKE \'%%#%s1%%\'' % thispage
        sql += 'AND w1.text NOT LIKE \'%%#%s2%%\'' % thispage
        sql += 'AND w1.text NOT LIKE \'%%#%s3%%\'' % thispage
        sql += 'AND w1.text NOT LIKE \'%%#%s4%%\'' % thispage
        sql += 'AND w1.text NOT LIKE \'%%#%s5%%\'' % thispage
        sql += 'AND w1.text NOT LIKE \'%%#%s6%%\'' % thispage
        sql += 'AND w1.text NOT LIKE \'%%#%s7%%\'' % thispage
        sql += 'AND w1.text NOT LIKE \'%%#%s8%%\'' % thispage
        sql += 'AND w1.text NOT LIKE \'%%#%s9%%\' )' % thispage

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by anonymous

  • Owner changed from trapanator to XayOn

comment:2 Changed 5 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed The owner will remain XayOn.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.