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
This commit is contained in:
Suresh Krishnan 2013-11-02 22:09:00 +00:00
parent 0ff1e5d04d
commit 74c7230842

View file

@ -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: