From 045020ce732138b765b65c203c2f0e9f277d2217 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Sat, 10 Oct 2026 18:04:29 +0200 Subject: [PATCH] fix: editing an automation removes the end of its schedule (#32191) An automation whose schedule stops after a number of runs or on a date lost that end the first time it was edited and saved, even when only the title changed, so it kept running forever. The Edit dialog showed such a schedule as a plain Daily, Weekly or Monthly one, and those options have no setting for an end, so saving wrote the schedule back without it. These schedules now open as Custom with the stored rule in its text field and are saved exactly as they were. Fixes #32000 --- src/lib/components/automations/ScheduleDropdown.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/automations/ScheduleDropdown.svelte b/src/lib/components/automations/ScheduleDropdown.svelte index c1d03cee11..9290e57987 100644 --- a/src/lib/components/automations/ScheduleDropdown.svelte +++ b/src/lib/components/automations/ScheduleDropdown.svelte @@ -126,7 +126,7 @@ if (k && v) parts[k] = v; }); const freq = parts.FREQ || 'DAILY'; - if (!['HOURLY', 'DAILY', 'WEEKLY', 'MONTHLY'].includes(freq)) { + if (!['HOURLY', 'DAILY', 'WEEKLY', 'MONTHLY'].includes(freq) || parts.COUNT || parts.UNTIL) { frequency = 'CUSTOM'; prevFrequency = 'CUSTOM'; customRrule = s;