Author: rjollos
Date: Tue Jul 30 14:00:03 2013
New Revision: 1508449

URL: http://svn.apache.org/r1508449
Log:
Fix for components with unicode characters preventing rendering of the 
milestone view. Fixes #616.

The milestone view shows a list of components, and the milestone view would not 
render due to an improperly encoded href string. URL encoding of the query href 
parameters did not account for the possibility that the parameters could be 
unicode strings.

Modified:
    bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py

Modified: bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py?rev=1508449&r1=1508448&r2=1508449&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py 
(original)
+++ bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py Tue Jul 
30 14:00:03 2013
@@ -34,6 +34,7 @@ from trac.ticket.api import TicketSystem
 from trac.ticket.query import Query
 from trac.ticket.roadmap import apply_ticket_permissions, get_ticket_stats, \
                             ITicketGroupStatsProvider, RoadmapModule
+from trac.util.text import unicode_urlencode
 from trac.util.translation import _
 from trac.web.chrome import add_stylesheet
 
@@ -217,7 +218,7 @@ class TicketFieldValuesWidget(WidgetBase
 
             query_href = query.get_href(req.href)
             item_link= lambda item: query_href + \
-                    '&' + urlencode([(fieldnm, item[0])])
+                    '&' + unicode_urlencode([(fieldnm, item[0])])
 
         if fieldnm in self.DASH_ITEM_HREF_MAP:
             def dash_item_link(item):


Reply via email to