From 74c723084246e1c50d35ea501475ba68264f8f23 Mon Sep 17 00:00:00 2001 From: Suresh Krishnan Date: Sat, 2 Nov 2013 22:09:00 +0000 Subject: [PATCH] Fixed issue #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 --- ietf/ietfworkflows/forms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ietf/ietfworkflows/forms.py b/ietf/ietfworkflows/forms.py index f6e76e5da..bb0a87743 100644 --- a/ietf/ietfworkflows/forms.py +++ b/ietf/ietfworkflows/forms.py @@ -282,6 +282,11 @@ class DraftTagsStateForm(StreamDraftForm): if settings.USE_DB_REDESIGN_PROXY_CLASSES: from ietf.doc.models import State state = State.objects.get(pk=self.cleaned_data.get('new_state')) + + old_state = self.draft.get_state("draft-stream-%s" % self.draft.stream_id) + if state==old_state: + return + weeks = self.cleaned_data.get('weeks') estimated_date = None if weeks: