[Python-apps-team] Bug#626798: trac-mastertickets: Breaks wiki diffs
Jens Peter Secher
jps at debian.org
Sun May 15 11:19:13 UTC 2011
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?
More information about the Python-apps-team
mailing list