Fix bug where job url type was constructed for letter on uploads page

This commit is contained in:
Pea Tyczynska
2020-02-04 14:19:07 +00:00
parent 18523587a6
commit 46292949cd
3 changed files with 11 additions and 3 deletions

View File

@@ -19,7 +19,7 @@
) %}
{% call row_heading() %}
<div class="file-list">
{% if item.upload_type == 'letter' %}
{% if item._dict.upload_type == 'letter' %}
<a class="file-list-filename" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=item.id) }}">{{ item.original_file_name }}</a>
{% else %}
<a class="file-list-filename" href="{{ url_for('.view_job', service_id=current_service.id, job_id=item.id) }}">{{ item.original_file_name }}</a>