From 0a2f26684b9562a4cc848e9a555e715e6dbefd85 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Sat, 21 Mar 2026 16:17:59 +0100 Subject: [PATCH] fill form mode --- app/views/day_logs/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/day_logs/_form.html.haml b/app/views/day_logs/_form.html.haml index c97e7a3..9934fbc 100644 --- a/app/views/day_logs/_form.html.haml +++ b/app/views/day_logs/_form.html.haml @@ -13,7 +13,7 @@ .field = label_tag :mode_id, "Mode" = select_tag "day_log[mode_id]", - options_from_collection_for_select(Current.user.modes, :id, :label), + options_from_collection_for_select(Current.user.modes, :id, :label, @mood&.mode_id), include_blank: true = f.submit