From 36d1e6215121efcc69dfc3d64152c2465e204e8f Mon Sep 17 00:00:00 2001 From: NguyenND Date: Wed, 19 Aug 2026 15:08:06 -0400 Subject: [PATCH] Aug 19 - Fix New Schedule assignment crash inspector's Dashboard --- app/templates/modern/dashboard.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/templates/modern/dashboard.html b/app/templates/modern/dashboard.html index 03703c5..297748f 100644 --- a/app/templates/modern/dashboard.html +++ b/app/templates/modern/dashboard.html @@ -54,7 +54,10 @@ {{ s.template.name if s.template else '—' }} {{ s.inspector.display_name if s.inspector else '—' }} {{ s.recurrence_label }} - {{ s.next_due_date.strftime('%b %d, %Y') }} + {# 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. #} + {{ s.due_date.strftime('%b %d, %Y') if s.due_date else '—' }} {% if s.inspector_id and s.inspector_id == current_user.id %} {% if s.is_acknowledged %}