Author: rjollos
Date: Tue Aug 27 01:04:07 2013
New Revision: 1517735
URL: http://svn.apache.org/r1517735
Log:
0.8dev: Reporter and timestamp in comment feed were not correct. Fixes #643.
Modified:
bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Modified: bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL:
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1517735&r1=1517734&r2=1517735&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Tue Aug 27 01:04:07 2013
@@ -363,14 +363,15 @@ class BloodhoundTheme(ThemeBase):
is_active)
#add a creation event to the changelog if the ticket exists
- if data['ticket'].exists:
+ ticket = data['ticket']
+ if ticket.exists:
data['changes'] = [{'comment': '',
- 'author': data['author_id'],
+ 'author': ticket['reporter'],
'fields': {u'reported': {'label': u'Reported'},
},
'permanent': 1,
'cnum': 0,
- 'date': data['start_time'],
+ 'date': ticket['time'],
},
] + data['changes']
#and set default order