Aug 19 - Fix New Schedule assignment crash inspector's Dashboard
This commit is contained in:
@@ -54,7 +54,10 @@
|
|||||||
<td class="small">{{ s.template.name if s.template else '—' }}</td>
|
<td class="small">{{ s.template.name if s.template else '—' }}</td>
|
||||||
<td class="small">{{ s.inspector.display_name if s.inspector else '—' }}</td>
|
<td class="small">{{ s.inspector.display_name if s.inspector else '—' }}</td>
|
||||||
<td class="small text-muted">{{ s.recurrence_label }}</td>
|
<td class="small text-muted">{{ s.recurrence_label }}</td>
|
||||||
<td class="small">{{ s.next_due_date.strftime('%b %d, %Y') }}</td>
|
{# MT's column is next_run_at (ST calls it next_due_date) — via the
|
||||||
|
due_date property, guarded: an active schedule can carry a NULL
|
||||||
|
next_run_at, and .strftime() on Undefined/None is a 500. #}
|
||||||
|
<td class="small">{{ s.due_date.strftime('%b %d, %Y') if s.due_date else '—' }}</td>
|
||||||
<td class="text-end text-nowrap">
|
<td class="text-end text-nowrap">
|
||||||
{% if s.inspector_id and s.inspector_id == current_user.id %}
|
{% if s.inspector_id and s.inspector_id == current_user.id %}
|
||||||
{% if s.is_acknowledged %}
|
{% if s.is_acknowledged %}
|
||||||
|
|||||||
Reference in New Issue
Block a user