mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
scope content dropdowns to the same universe, if present
This commit is contained in:
parent
786569315f
commit
2c016ca4ac
@ -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] }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user