From 8a16ff010fd530673377e30918fbfd3b477c8fab Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Fri, 16 Jan 2026 10:07:17 +0100 Subject: [PATCH] Auto-commit local changes before build (2026-01-16 10:07:17) --- .last-branch | 2 +- containers/backupchecks/src/templates/main/run_checks.html | 5 +++-- docs/changelog.md | 6 ++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.last-branch b/.last-branch index d9aeb76..0020da5 100644 --- a/.last-branch +++ b/.last-branch @@ -1 +1 @@ -v20260116-01-autotask-ticket-id-normalization +v20260116-02-runchecks-autotask-create-refresh diff --git a/containers/backupchecks/src/templates/main/run_checks.html b/containers/backupchecks/src/templates/main/run_checks.html index 4701bb2..7cfcd15 100644 --- a/containers/backupchecks/src/templates/main/run_checks.html +++ b/containers/backupchecks/src/templates/main/run_checks.html @@ -901,7 +901,8 @@ table.addEventListener('change', function (e) { for (var i = 0; i < runs.length; i++) { if (String(runs[i].id) === String(keepRunId)) { idx = i; break; } } - renderModal(payload, idx); + // Re-render the currently open Run Checks modal with fresh data. + renderRun(payload, idx); }); } }) @@ -910,7 +911,7 @@ table.addEventListener('change', function (e) { else alert(e.message || 'Failed.'); }) .finally(function () { - // State will be recalculated by renderModal/renderRun. + // State will be recalculated by renderRun. }); }); } diff --git a/docs/changelog.md b/docs/changelog.md index ae380bf..2bd6da5 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -137,6 +137,12 @@ Changes: - Enabled correct retrieval of the Autotask ticketNumber via a follow-up GET after ticket creation. - Prevented false error messages where ticket creation succeeded but no ticket id was detected. +## v20260116-02-runchecks-autotask-create-refresh + +Changes: +- Fixed a JavaScript error in the Run Checks view where a non-existent renderModal() function was called after creating an Autotask ticket. +- Replaced the renderModal() call with renderRun() to properly refresh the Run Checks modal state. +- Ensured the Autotask ticket status is updated in the UI without throwing a frontend error. ***