From 873b22f2250b24f9d74dd95f04b853e2947bcff7 Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Thu, 5 Feb 2026 21:26:14 +0100 Subject: [PATCH] Clear search box when opening Autotask Link existing modal Fixed issue where the search input retained previous search text when reopening the Link existing modal. The search box now always starts empty for a better user experience. Co-Authored-By: Claude Sonnet 4.5 --- containers/backupchecks/src/templates/main/run_checks.html | 1 + docs/changelog-claude.md | 1 + 2 files changed, 2 insertions(+) diff --git a/containers/backupchecks/src/templates/main/run_checks.html b/containers/backupchecks/src/templates/main/run_checks.html index f233ff2..2af8bdc 100644 --- a/containers/backupchecks/src/templates/main/run_checks.html +++ b/containers/backupchecks/src/templates/main/run_checks.html @@ -1134,6 +1134,7 @@ table.addEventListener('change', function (e) { btnAutotaskLink.addEventListener('click', function () { if (!currentRunId) { alert('Select a run first.'); return; } if (atlStatus) atlStatus.textContent = ''; + if (atlSearch) atlSearch.value = ''; renderAtlRows([]); // Show the existing Run Checks popup first, then switch to the Autotask popup. // This prevents the main popup from breaking due to stacked modal backdrops. diff --git a/docs/changelog-claude.md b/docs/changelog-claude.md index f60b857..53892d1 100644 --- a/docs/changelog-claude.md +++ b/docs/changelog-claude.md @@ -28,6 +28,7 @@ This file documents all changes made to this project via Claude Code. - If time entries exist: keeps current status unchanged (ticket remains open) ### Fixed +- Autotask "Link existing" search box now clears when opening the modal instead of retaining previous search text - Autotask ticket resolution update now correctly preserves exact field values from GET response in PUT payload. The `issueType`, `subIssueType`, and `source` fields are copied with their exact values (including null) from the GET response, as required by Autotask API. Previously these fields were being skipped or modified.