1. Alex Willmer
  2. trac-ticketlinks

Commits

cmlenz  committed 3d9c642

Ported [2895] to 0.9-stable (fixing #2330).

  • Participants
  • Parent commits 868fcbb
  • Branches 0.9-stable

Comments (0)

Files changed (2)

File templates/report.cs

View file
            <?cs call:report_cell('ticket',
                                  '<a title="View ticket" href="'+
                                  $cell.ticket_href+'">#'+$cell+'</a>') ?>
-         <?cs elif name(cell) == "summary" ?>
+         <?cs elif name(cell) == "summary" && cell.ticket_href ?>
            <?cs call:report_cell('summary', '<a title="View ticket" href="'+
                                  $cell.ticket_href+'">'+$cell+'</a>') ?>
          <?cs elif name(cell) == "report" ?>

File trac/ticket/report.py

View file
                 elif column[0] == '_':
                     value['hidehtml'] = 1
                     column = column[1:]
-                if column in ['id', 'ticket', '#', 'summary']:
+                if column in ('ticket', 'id', '_id', '#', 'summary'):
                     id_cols = [idx for idx, col in util.enum(cols)
-                               if col[0] in ('ticket', 'id')]
+                               if col[0] in ('ticket', 'id', '_id')]
                     if id_cols:
                         id_val = row[id_cols[0]]
                         value['ticket_href'] = self.env.href.ticket(id_val)
                     value['rss'] = cell
                 elif column == 'report':
                     value['report_href'] = self.env.href.report(cell)
-                elif column in ['time', 'date','changetime', 'created', 'modified']:
+                elif column in ('time', 'date','changetime', 'created', 'modified'):
                     value['date'] = util.format_date(cell)
                     value['time'] = util.format_time(cell)
                     value['datetime'] = util.format_datetime(cell)