Edgewall Software

Ticket #12186: t12186.diff

File t12186.diff, 2.9 KB (added by Ryan J Ollos, 10 years ago)
  • trac/ticket/notification.py

    diff --git a/trac/ticket/notification.py b/trac/ticket/notification.py
    index b6e3e84..daff038 100644
    a b class TicketFormatter(Component):  
    231231            ticket = event.target
    232232            notify.ticket = ticket
    233233            summary = ticket['summary']
     234
     235
     236
     237
     238
     239
    234240            subject = notify.format_subj(summary, event.category == 'created')
    235241            url = self.env.abs_href.ticket(ticket.id)
    236242            if event.category != 'created':
  • trac/ticket/tests/notification.py

    diff --git a/trac/ticket/tests/notification.py b/trac/ticket/tests/notification.py
    index 8d943cc..460561e 100644
    a b Security sensitive: 0 | Blocking:  
    12221222            lines.append(line)
    12231223        self.assertEqual(expected, '\n'.join(lines))
    12241224
     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
    12251266    def test_notification_does_not_alter_ticket_instance(self):
    12261267        ticket = Ticket(self.env)
    12271268        ticket['summary'] = 'My Summary'