From 2c016ca4acac6bcb3d4e5dd9e5eacda12cf7de33 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 31 Jan 2018 00:55:29 -0600 Subject: [PATCH] scope content dropdowns to the same universe, if present --- app/views/content/form/_groupship_fields.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/content/form/_groupship_fields.html.erb b/app/views/content/form/_groupship_fields.html.erb index 96c31064..c8fee709 100644 --- a/app/views/content/form/_groupship_fields.html.erb +++ b/app/views/content/form/_groupship_fields.html.erb @@ -26,6 +26,7 @@ f.select "#{attribute}_id", current_user.send("linkable_#{klass.pluralize}") .in_universe(@universe_scope) + .in_universe(@content.universe) .sort_by(&:name) .reject { |content| content.class.name == klass && content.id == @content.id } .map { |c| [c.name, c.id] }