Skip to content

Commit 8c960fc

Browse files
committed
Content linking dropdowns no longer exclude same-id/different-class options, fixes #193
1 parent 5856865 commit 8c960fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/content/form/_groupship_fields.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
current_user.send(klass.pluralize)
2828
.in_universe(@universe_scope)
2929
.sort_by(&:name)
30-
.reject { |content| content.id == @content.id }
30+
.reject { |content| content.class.name == klass && content.id == @content.id }
3131
.map { |c| [c.name, c.id] }
3232
.compact,
3333
include_blank: true

0 commit comments

Comments
 (0)