Ticket #2247: notify_own_changes-0.11.7.patch
| File notify_own_changes-0.11.7.patch, 1.4 KB (added by stef@…, 20 months ago) |
|---|
-
./trac/ticket/notification.py
old new 43 43 property change and to any previous updater of that ticket.""") 44 44 45 notify_own_changes = BoolOption('notification', 'notify_own_changes', 46 'false', 47 """Send notifications even if it was triggered by the user itself. If 48 this option is "false" all recipients will only be notified about 49 changes made by other users.""") 50 45 51 ticket_subject_template = Option('notification', 'ticket_subject_template', 46 52 '$prefix #$ticket.id: $summary', … … 239 245 notify_updater = self.config.getbool('notification', 240 246 'always_notify_updater') 247 notify_own_changes = self.config.getbool('notification', 248 'notify_own_changes') 241 249 242 250 ccrecipients = self.prev_cc … … 286 294 elif updater: 287 295 torecipients.append(updater) 296 297 if not notify_own_changes and updater: 298 torecipients = [r for r in torecipients if r != updater] 299 ccrecipients = [r for r in ccrecipients if r != updater] 288 300 289 301 return (torecipients, ccrecipients)
