From 016ded0958f7b4fde4edc7864f9696ed4b98c4b4 Mon Sep 17 00:00:00 2001 From: Adrian Sieber Date: Sun, 5 May 2024 15:51:25 +0000 Subject: [PATCH] Correctly set state to `NULL` when unclosing a task --- tasklite-core/source/Lib.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasklite-core/source/Lib.hs b/tasklite-core/source/Lib.hs index dcff329..eaea145 100644 --- a/tasklite-core/source/Lib.hs +++ b/tasklite-core/source/Lib.hs @@ -1811,7 +1811,9 @@ uncloseTasks conf connection ids = do connection [sql| UPDATE tasks - SET closed_utc = NULL + SET + closed_utc = NULL, + state = NULL WHERE ulid == :ulid |] [":ulid" := task.ulid]