Commits

cmlenz  committed 72657a9

Port [2582] to 0.9-stable.

  • Participants
  • Parent commits 5ff5cdf
  • Branches 0.9-stable

Comments (0)

Files changed (1)

File trac/ticket/roadmap.py

 from trac.core import *
 from trac.perm import IPermissionRequestor
 from trac.util import enum, escape, format_date, format_datetime, \
-                      parse_date, pretty_timedelta, shorten_line, CRLF
+                      parse_date, pretty_timedelta, shorten_line, unescape, CRLF
 from trac.ticket import Milestone, Ticket, TicketSystem
 from trac.Timeline import ITimelineEventProvider
 from trac.web import IRequestHandler
         req.hdf['roadmap.milestones'] = milestones
 
         for idx,milestone in enum(milestones):
+            milestone_name = unescape(milestone['name']) # Kludge
             prefix = 'roadmap.milestones.%d.' % idx
-            tickets = get_tickets_for_milestone(self.env, db, milestone['name'],
+            tickets = get_tickets_for_milestone(self.env, db, milestone_name,
                                                 'owner')
             req.hdf[prefix + 'stats'] = calc_ticket_stats(tickets)
-            for k, v in get_query_links(self.env, milestone['name']).items():
+            for k, v in get_query_links(self.env, milestone_name).items():
                 req.hdf[prefix + 'queries.' + k] = escape(v)
             milestone['tickets'] = tickets # for the iCalendar view