From a30f64ab70a1b7fc219f2c63cb8cd37ef08fcdc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Thu, 6 Jan 2022 11:24:03 +0100 Subject: [PATCH] fix teacher form --- app/views/admin/education/program/teachers/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/education/program/teachers/_form.html.erb b/app/views/admin/education/program/teachers/_form.html.erb index bc9e7bf5b..d15ac9831 100644 --- a/app/views/admin/education/program/teachers/_form.html.erb +++ b/app/views/admin/education/program/teachers/_form.html.erb @@ -7,7 +7,7 @@ </div> <div class="card-body"> <% teacher_ids = @program.teachers.where.not(id: teacher.id).pluck(:person_id) %> - <%= f.association :person, collection: current_university.people.teachers.where(id: teacher_ids).ordered %> + <%= f.association :person, collection: current_university.people.teachers.where.not(id: teacher_ids).ordered %> <%= f.input :description, input_html: { rows: 5 } %> </div> </div> -- GitLab