fix: guard against reviews without reviewassignments. Fixes #3906. (#3915)

This commit is contained in:
Robert Sparks 2022-04-29 18:43:35 -05:00 committed by GitHub
parent d7362609b8
commit 8fc8e9af4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 %}
@ -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>
@ -47,4 +51,4 @@
</div>
</div>
{% endif %}
{% endblock %}
{% endblock %}