Skip to content
Snippets Groups Projects
Commit f6e71013 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent 9d4e626b
No related branches found
No related tags found
No related merge requests found
......@@ -89,9 +89,9 @@ module Communication::Website::WithConnectedObjects
University::Organization.where(id: ids)
end
def connected_hal_publications
ids = connections.where(indirect_object_type: 'Research::Hal::Publication').pluck(:indirect_object_id)
Research::Hal::Publication.where(id: ids)
def connected_publications
ids = connections.where(indirect_object_type: 'Research::Publication').pluck(:indirect_object_id)
Research::Publication.where(id: ids)
end
# ensure the object "website" respond to both is_direct_object? and is_indirect_object? as website doesn't include neither as_direct_object nor as_indirect_object
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment