Skip to content

Commit 0fa1500

Browse files
committed
Changed the format of email addresses added to the document notifications filed when the document shepherd is set. Fixes issue ietf-tools#3079.
- Legacy-Id: 18494
1 parent 1b90193 commit 0fa1500

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

ietf/doc/views_draft.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,12 +1016,15 @@ def edit_shepherd(request, name):
10161016
c.save()
10171017
events.append(c)
10181018

1019-
if doc.shepherd and (doc.shepherd.formatted_email() not in doc.notify):
1019+
if doc.shepherd and (doc.shepherd.address not in doc.notify):
10201020
addrs = doc.notify
10211021
if addrs:
10221022
addrs += ', '
1023-
addrs += doc.shepherd.formatted_email()
1024-
events.append(make_notify_changed_event(request, doc, request.user.person, addrs, c.time))
1023+
addrs += doc.shepherd.address
1024+
c = make_notify_changed_event(request, doc, request.user.person, addrs, c.time)
1025+
c.desc += " because the document shepherd was set"
1026+
c.save()
1027+
events.append(c)
10251028
doc.notify = addrs
10261029

10271030
doc.save_with_history(events)

0 commit comments

Comments
 (0)