From d2b36329d594b2f30e46294e9ac6dddcc4878027 Mon Sep 17 00:00:00 2001 From: Richard Matthews Date: Fri, 12 Jan 2024 16:13:25 +1300 Subject: [PATCH] fix(2_bugs): Edit Schedule Destination Retain the selected destination on the schedule form. --- app/views/schedules/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/schedules/_form.html.erb b/app/views/schedules/_form.html.erb index 7cb2cfeb..a2753dbb 100644 --- a/app/views/schedules/_form.html.erb +++ b/app/views/schedules/_form.html.erb @@ -158,7 +158,7 @@
- <%= form.select :destination_id, options_from_collection_for_select(@destinations, 'id', 'name'), {}, + <%= form.select :destination_id, options_from_collection_for_select(@destinations, 'id', 'name', @schedule.destination.id), {}, class: 'form-select' %>