From c9edc2d1e344f85a8bf08ad0b3fe11d08a1e0535 Mon Sep 17 00:00:00 2001 From: Ray Carrick Date: Tue, 21 Sep 2021 12:56:21 +0100 Subject: [PATCH 1/2] Update new.html.erb fixes: https://github.com/DigitalCurationCentre/DMPonline-Service/issues/622 Org select not working when creating a contributor. --- app/views/contributors/new.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/contributors/new.html.erb b/app/views/contributors/new.html.erb index 9286269391..85c0454d2f 100644 --- a/app/views/contributors/new.html.erb +++ b/app/views/contributors/new.html.erb @@ -17,7 +17,7 @@
<%= form_for @contributor, url: plan_contributors_path do |f| %> <%= render partial: "contributors/form", - locals: { form: f, plan: @plan, contributor: @contributor, orgs: @orgs, org_partial: @org_partial } %> + locals: { form: f, plan: @plan, contributor: @contributor, orgs: @all_orgs, org_partial: @org_partial } %> <% end %>
From f685ff39cfff9f7bc91da426700f2de9f77a4985 Mon Sep 17 00:00:00 2001 From: Ray Carrick Date: Tue, 21 Sep 2021 12:58:13 +0100 Subject: [PATCH 2/2] Update edit.html.erb Change mirriors that to new.html.erb --- app/views/contributors/edit.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/contributors/edit.html.erb b/app/views/contributors/edit.html.erb index e47ee1213b..59c4b37706 100644 --- a/app/views/contributors/edit.html.erb +++ b/app/views/contributors/edit.html.erb @@ -18,7 +18,7 @@ <%= form_for @contributor, url: plan_contributor_path(@plan, @contributor), html: { method: :put } do |f| %> <%= render partial: "contributors/form", - locals: { form: f, plan: @plan, contributor: @contributor, orgs: @orgs, org_partial: @org_partial } %> + locals: { form: f, plan: @plan, contributor: @contributor, orgs: @all_orgs, org_partial: @org_partial } %> <% end %>