trac-hacks / tracstats

Project and source code statistics plugin for Trac.
http://trac-hacks.org/wiki/TracStatsPlugin
Other
20 stars 13 forks source link

Incorrect component link in tickets view #14

Closed jsiirola closed 13 years ago

jsiirola commented 13 years ago

The component links for the tickets in the "Most active tickets" section point to the wrong URL (the ticket and not the component query). The following patch fixes things:

diff --git a/tracstats/templates/tickets.html b/tracstats/templates/tickets.html
index d017883..075e7b0 100644
--- a/tracstats/templates/tickets.html
+++ b/tracstats/templates/tickets.html
@@ -137,7 +137,7 @@ $(document).ready(function()
 <py:for each="stat in active">
 <tr>
     <td width="50"><a href="${stat.url}">${stat.id}</a></td>
-    <td width="150"><a href="${stat.url}">${stat.component}</a></td>
+    <td width="150"><a href="${stat.url2}">${stat.component}</a></td>
     <td width="350">${stat.name}</td>
     <td width="75" align="right">${stat.count}</td>
     <td width="75" align="right">${stat.percent}%</td>
mrjbq7 commented 13 years ago

Thanks for the bug report! I've applied your patch.