Skip to content
Snippets Groups Projects
Unverified Commit 20ea73e7 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

fix (#1879)

parent 8d4c0093
No related branches found
No related tags found
No related merge requests found
......@@ -29,11 +29,11 @@ class Communication::Block::Template::Organization < Communication::Block::Templ
end
def organizations
@organizations ||= elements.collect(&:organization).compact.uniq
@organizations ||= selected_elements.collect(&:organization).compact.uniq
end
def organization_ids
@organization_ids ||= @elements.collect(&:organization_id).compact.uniq
@organization_ids ||= organizations.collect(&:id)
end
def selected_elements
......
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