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