Merge pull request #654 from alphagov/fix-500-notification-no-updated-at

Fix 500 on job page when notifications are sending
This commit is contained in:
Chris Hill-Scott
2016-06-07 09:40:04 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@
align='right',
status='error' if item.status == 'Failed' else 'default'
) %}
{{ item.status|format_notification_status }} at {{ item.updated_at|format_time }}
{{ item.status|format_notification_status }} at {{ (item.updated_at or item.created_at)|format_time }}
{% endcall %}
{% endcall %}
{% else %}

View File

@@ -94,7 +94,7 @@
{{ text_field(item.status|format_notification_status) }}
{% call field(align='right') %}
{{ item.updated_at|format_datetime_short }}
{{ (item.updated_at or item.created_at)|format_datetime_short }}
{% endcall %}
{% endcall %}