# This patch provides an option to disable ticket notifications about changes
# done by the user itself. It'll still be notified about changes made by others.
|
old
|
new
|
|
| 41 | 41 | 'true', |
| 42 | 42 | """Always send notifications to the person who causes the ticket |
| 43 | 43 | property change.""") |
| | 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.""") |
| 44 | 50 | |
| 45 | 51 | ticket_subject_template = Option('notification', 'ticket_subject_template', |
| 46 | 52 | '$prefix #$ticket.id: $summary', |
| … |
… |
|
| 235 | 241 | 'always_notify_owner') |
| 236 | 242 | notify_updater = self.config.getbool('notification', |
| 237 | 243 | 'always_notify_updater') |
| | 244 | notify_own_changes = self.config.getbool('notification', |
| | 245 | 'notify_own_changes') |
| 238 | 246 | |
| 239 | 247 | ccrecipients = self.prev_cc |
| 240 | 248 | torecipients = [] |
| … |
… |
|
| 282 | 290 | torecipients = [r for r in torecipients if r and r != updater] |
| 283 | 291 | elif updater: |
| 284 | 292 | torecipients.append(updater) |
| | 293 | |
| | 294 | if not notify_own_changes and updater: |
| | 295 | torecipients = [r for r in torecipients if r != updater] |
| | 296 | ccrecipients = [r for r in ccrecipients if r != updater] |
| 285 | 297 | |
| 286 | 298 | return (torecipients, ccrecipients) |
| 287 | 299 | |