Changeset 243
- Timestamp:
- 01/08/2014 11:01:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/patches/notifications.diff
r231 r243 11 11 12 12 class TicketNotificationSystem(Component): 13 @@ -94,6 +95,4 1@@13 @@ -94,6 +95,43 @@ 14 14 torecipients.append(row[2]) 15 15 break … … 26 26 + # Retrieve the old milestone/component if it just changed 27 27 + changes = ticket.get_changelog() 28 + changes.reverse() 29 + last_change = changes[0] 30 + for change in changes: 31 + if change[0] != last_change[0]: 32 + break 33 + if change[2] == 'component': 34 + old_component = change[3] 35 + if change[2] == 'milestone': 36 + old_milestone = change[3] 28 + # New tickets do not have changes 29 + if changes: 30 + changes.reverse() 31 + last_change = changes[0] 32 + for change in changes: 33 + if change[0] != last_change[0]: 34 + break 35 + if change[2] == 'component': 36 + old_component = change[3] 37 + if change[2] == 'milestone': 38 + old_milestone = change[3] 37 39 + 38 40 + # Add component subscribers … … 53 55 if notify_updater: 54 56 for author, ticket in db(""" 55 @@ -126,6 +16 2,12 @@57 @@ -126,6 +164,12 @@ 56 58 elif updater: 57 59 torecipients.append(updater)
Note: See TracChangeset
for help on using the changeset viewer.