Skip to content

Commit

Permalink
fix: guard against reviews without reviewassignments. Fixes #3906. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks authored Apr 29, 2022
1 parent d736260 commit 8fc8e9a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ietf/templates/doc/document_review.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<div class="alert alert-warning my-3">This review has no associated review request</div>
{% endif %}
{% if doc.rev != latest_rev %}
<div class="alert alert-warning my-3">The information below is for an old version of the document.</div>
{% endif %}
Expand All @@ -31,7 +35,7 @@
<td class="edit"></td>
<td>
{% 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 %}
</td>
</tr>
Expand All @@ -47,4 +51,4 @@
</div>
</div>
{% endif %}
{% endblock %}
{% endblock %}

0 comments on commit 8fc8e9a

Please sign in to comment.