From 2887a021ba6039fe3bc65ff722e505d94e29f313 Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Mon, 19 Jan 2026 13:20:41 +0100 Subject: [PATCH] Auto-commit local changes before build (2026-01-19 13:20:41) --- .last-branch | 2 +- containers/backupchecks/src/templates/main/run_checks.html | 4 ++-- docs/changelog.md | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.last-branch b/.last-branch index 50bcf1d..558ed93 100644 --- a/.last-branch +++ b/.last-branch @@ -1 +1 @@ -v20260119-05-autotask-create-itemid +v20260119-06-runchecks-renderRun-fix diff --git a/containers/backupchecks/src/templates/main/run_checks.html b/containers/backupchecks/src/templates/main/run_checks.html index 4701bb2..dcf56ca 100644 --- a/containers/backupchecks/src/templates/main/run_checks.html +++ b/containers/backupchecks/src/templates/main/run_checks.html @@ -901,7 +901,7 @@ 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); + renderRun(payload, idx); }); } }) @@ -910,7 +910,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 2a3e9da..97d6e7f 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -241,6 +241,13 @@ Changes: - Fixed erroneous failure condition where ticket creation was rejected because Autotask did not return a full ticket object. - Restored compatibility with Autotask’s documented behavior for ticket creation responses. +## v20260119-06-runchecks-renderRun-fix + +### Changes: +- Fixed JavaScript error in Run Checks where a non-existent renderModal() function was called after creating an Autotask ticket. +- Replaced the invalid renderModal() call with renderRun() to correctly refresh the run state and UI. +- Prevented UI failure after successful Autotask ticket creation while preserving backend behavior. + *** ## v0.1.21