Skip to content

Commit 4ef318b

Browse files
committed
Merged in [13183] from rcross@amsl.com:
Fix error when selecting a document on the Telechat agenda that does not have a writeup. Fixes ietf-tools#2262. - Legacy-Id: 13191 Note: SVN reference [13183] has been migrated to Git commit 8a725c6
2 parents d19179b + 8a725c6 commit 4ef318b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

ietf/secr/telechat/views.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ def get_doc_writeup(doc):
5858
writeup = 'This document has no writeup'
5959
if doc.type_id == 'draft':
6060
latest = doc.latest_event(WriteupDocEvent, type='changed_ballot_writeup_text')
61-
if latest and doc.has_rfc_editor_note():
62-
rfced_note = doc.latest_event(WriteupDocEvent, type="changed_rfc_editor_note_text")
63-
writeup = latest.text + "\n\n" + rfced_note.text
64-
else:
61+
if latest:
6562
writeup = latest.text
63+
if doc.has_rfc_editor_note():
64+
rfced_note = doc.latest_event(WriteupDocEvent, type="changed_rfc_editor_note_text")
65+
writeup = writeup + "\n\n" + rfced_note.text
66+
6667
if doc.type_id == 'charter':
6768
latest = doc.latest_event(WriteupDocEvent, type='changed_ballot_writeup_text')
6869
if latest:

0 commit comments

Comments
 (0)