Skip to content

Commit 74c7230

Browse files
Fixed issue ietf-tools#1127. New behavior is
case: Only annotation tags changed -> Send annotation tags changed email (no state change mails) case: Only comment changed -> *No emails*. Just add a history entry. case: State changed -> Send state change emails. Include comments in the email if any were entered. If annotation tags were also changed, send a separate annotation tag change email. - Legacy-Id: 6626
1 parent 0ff1e5d commit 74c7230

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ietf/ietfworkflows/forms.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,11 @@ def save_state(self):
282282
if settings.USE_DB_REDESIGN_PROXY_CLASSES:
283283
from ietf.doc.models import State
284284
state = State.objects.get(pk=self.cleaned_data.get('new_state'))
285+
286+
old_state = self.draft.get_state("draft-stream-%s" % self.draft.stream_id)
287+
if state==old_state:
288+
return
289+
285290
weeks = self.cleaned_data.get('weeks')
286291
estimated_date = None
287292
if weeks:

0 commit comments

Comments
 (0)