From 463867eb0688b8965d6b90597b8f2eb75da8b623 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Mon, 29 Nov 2021 15:14:09 +0100
Subject: [PATCH] fix

---
 app/views/admin/education/programs/_form.html.erb        | 2 +-
 app/views/admin/research/journal/articles/_form.html.erb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/views/admin/education/programs/_form.html.erb b/app/views/admin/education/programs/_form.html.erb
index 3abf68619..cdc869930 100644
--- a/app/views/admin/education/programs/_form.html.erb
+++ b/app/views/admin/education/programs/_form.html.erb
@@ -50,7 +50,7 @@
           <%= f.input :evaluation, as: :rich_text_area %>
           <%= f.association :teachers,
                             as: :check_boxes,
-                            collection: current_university.teachers.ordered %>
+                            collection: current_university.education_teachers.ordered %>
         </div>
       </div>
     </div>
diff --git a/app/views/admin/research/journal/articles/_form.html.erb b/app/views/admin/research/journal/articles/_form.html.erb
index a1a80fb55..52e37486c 100644
--- a/app/views/admin/research/journal/articles/_form.html.erb
+++ b/app/views/admin/research/journal/articles/_form.html.erb
@@ -23,7 +23,7 @@
           <%= f.association :volume, collection: @journal.volumes, label: Research::Journal::Volume.model_name.human %>
           <%= f.input :published_at, html5: true %>
           <%= f.input :keywords, as: :text, input_html: { rows: 2 } %>
-          <%= f.association :researchers, collection: current_university.researchers.ordered , multiple: true %>
+          <%= f.association :researchers, collection: current_university.research_researchers.ordered , multiple: true %>
         </div>
       </div>
     </div>
-- 
GitLab