diff --git a/trac/ticket/notification.py b/trac/ticket/notification.py
index b6e3e84..daff038 100644
|
a
|
b
|
class TicketFormatter(Component):
|
| 231 | 231 | ticket = event.target |
| 232 | 232 | notify.ticket = ticket |
| 233 | 233 | summary = ticket['summary'] |
| | 234 | |
| | 235 | |
| | 236 | |
| | 237 | |
| | 238 | |
| | 239 | |
| 234 | 240 | subject = notify.format_subj(summary, event.category == 'created') |
| 235 | 241 | url = self.env.abs_href.ticket(ticket.id) |
| 236 | 242 | if event.category != 'created': |
diff --git a/trac/ticket/tests/notification.py b/trac/ticket/tests/notification.py
index 8d943cc..460561e 100644
|
a
|
b
|
Security sensitive: 0 | Blocking:
|
| 1222 | 1222 | lines.append(line) |
| 1223 | 1223 | self.assertEqual(expected, '\n'.join(lines)) |
| 1224 | 1224 | |
| | 1225 | |
| | 1226 | |
| | 1227 | |
| | 1228 | |
| | 1229 | |
| | 1230 | |
| | 1231 | |
| | 1232 | |
| | 1233 | |
| | 1234 | |
| | 1235 | |
| | 1236 | |
| | 1237 | |
| | 1238 | |
| | 1239 | |
| | 1240 | |
| | 1241 | |
| | 1242 | |
| | 1243 | |
| | 1244 | |
| | 1245 | |
| | 1246 | |
| | 1247 | |
| | 1248 | |
| | 1249 | |
| | 1250 | |
| | 1251 | |
| | 1252 | |
| | 1253 | |
| | 1254 | |
| | 1255 | |
| | 1256 | |
| | 1257 | |
| | 1258 | |
| | 1259 | |
| | 1260 | |
| | 1261 | |
| | 1262 | |
| | 1263 | |
| | 1264 | |
| | 1265 | |
| 1225 | 1266 | def test_notification_does_not_alter_ticket_instance(self): |
| 1226 | 1267 | ticket = Ticket(self.env) |
| 1227 | 1268 | ticket['summary'] = 'My Summary' |