From 8fc8e9af4f2d8b0eb59234fa8eee1a99a9036a22 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Fri, 29 Apr 2022 18:43:35 -0500 Subject: [PATCH] fix: guard against reviews without reviewassignments. Fixes #3906. (#3915) --- ietf/templates/doc/document_review.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ietf/templates/doc/document_review.html b/ietf/templates/doc/document_review.html index 1802170c0..2e307ec6a 100644 --- a/ietf/templates/doc/document_review.html +++ b/ietf/templates/doc/document_review.html @@ -9,7 +9,11 @@ {% origin %} {{ top|safe }} {% include "doc/revisions_list.html" %} - {% include "doc/review/request_info.html" %} + {% if review_req %} + {% include "doc/review/request_info.html" %} + {% else %} +
This review has no associated review request
+ {% endif %} {% if doc.rev != latest_rev %}
The information below is for an old version of the document.
{% endif %} @@ -31,7 +35,7 @@ {% for review_assignment in other_reviews %} - {% include "doc/review_assignment_summary.html" with current_doc_name=review_assignemnt.review_request.doc.name current_rev=review_assignment.reviewed_rev %} + {% include "doc/review_assignment_summary.html" with current_doc_name=review_assignment.review_request.doc.name current_rev=review_assignment.reviewed_rev %} {% endfor %} @@ -47,4 +51,4 @@ {% endif %} -{% endblock %} \ No newline at end of file +{% endblock %}