Skip to content

Commit 2658ff2

Browse files
committed
For a new IESG tracker document, only add a history comment about previous history if some previous history exists (i.e., if the replaced document also existed in the IESG tracker).
- Legacy-Id: 2769
1 parent a3e3ee1 commit 2658ff2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/idrfc/views_edit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def edit_info(request, name):
219219
doc.idinternal.area_acronym = r['area_acronym']
220220

221221
replaces = doc.replaces_set.all()
222-
if replaces:
222+
if replaces and replaces[0].idinternal:
223223
c = "Earlier history may be found in the Comment Log for <a href=\"%s\">%s</a>" % (replaces[0], replaces[0].idinternal.get_absolute_url())
224224
add_document_comment(request, doc, c)
225225

0 commit comments

Comments
 (0)