Package: trac-mastertickets
Severity: normal

The mastertickets plugin for trac breaks most of the diff links for
ticket descriptions and comments.  The following patch is adapted
from http://trac-hacks.org/ticket/3920 and it makes the diffs work
again.

--- trac-mastertickets-2.1.3+r4179.orig/0.11/mastertickets/web_ui.py
+++ trac-mastertickets-2.1.3+r4179/0.11/mastertickets/web_ui.py
@@ -60,7 +60,9 @@
             if links:
                 add_ctxtnav(req, 'Depgraph', req.href.depgraph(tkt.id))
             
-            for change in data.get('changes', []):
+            for change in data.get('changes', {}):
+                if not change.has_key('fields'): 
+                    continue 
                 for field, field_data in change['fields'].iteritems():
                     if field in self.fields:
                         if field_data['new'].strip():

I have placed a patched package at http://people.debian.org/~jps/wheezy

Cheers,
-- 
Jens Peter Secher, GPG fingerprint 0EE5978AFE63E8A1.

A. Because it breaks the logical sequence of discussion.
Q. Why is top posting bad?



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to