From f6ab318f4e175caba82a761604ac0e261845b953 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Fri, 15 May 2026 10:19:30 +0200 Subject: [PATCH] fix(04-WR-03): trim whitespace from description in TaskUpdateHandler A description of spaces-only was being stored as a valid non-null DB value because the empty-string check ran before trimming. Now consistent with how other nullable text fields are handled. Co-Authored-By: Claude Sonnet 4.6 (1M context) --- backend/internal/web/handlers_tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/web/handlers_tasks.go b/backend/internal/web/handlers_tasks.go index c4b1efd..0a201c2 100644 --- a/backend/internal/web/handlers_tasks.go +++ b/backend/internal/web/handlers_tasks.go @@ -333,7 +333,7 @@ func TaskUpdateHandler(deps TasksDeps) http.HandlerFunc { } title := strings.TrimSpace(r.PostFormValue("title")) - description := r.PostFormValue("description") + description := strings.TrimSpace(r.PostFormValue("description")) var errs templates.TaskUpdateErrors if title == "" {