Ticket #5441: web_ui_timeline.diff
| File web_ui_timeline.diff, 1.3 KB (added by anonymous, 5 years ago) |
|---|
-
web_ui.py
206 206 info += ': ' 207 207 else: 208 208 return None 209 kind, verb = status_map[status] 209 if status in status_map: 210 kind, verb = status_map[status] 211 else: # non-standard status 212 info = tag('status changed from ', tag.i(comment), ' to ', tag.i(status), tag.br()) 213 comment = None 214 kind = 'editedticket' 215 verb = 'updated' 210 216 title = ctx.format_summary(summary, status, resolution, type) 211 217 title = tag('Ticket ', tag.em(ctx.shortname(), title=title), 212 218 ' (', shorten_line(summary), ') ', verb) … … 249 255 if field == 'comment': 250 256 comment = newvalue 251 257 cid = oldvalue and oldvalue.split('.')[-1] 252 elif field == 'status' and newvalue in ('reopened', 'closed'):258 elif field == 'status': # anything is good 253 259 status = newvalue 260 comment = oldvalue 254 261 else: 255 262 fields[field] = newvalue 256 263 if previous_update:
