decidim-results/app/forms/decidim/results/admin/result_form.rb in decidim-0.0.5 vs decidim-results/app/forms/decidim/results/admin/result_form.rb in decidim-0.0.6

- old
+ new

@@ -25,11 +25,19 @@ def proposals @proposals ||= Decidim.find_resource_manifest(:proposals).try(:resource_scope, context.current_feature)&.order(title: :asc)&.pluck(:title, :id) end + def organization_scopes + current_organization.scopes + end + + def process_scope + current_feature.participatory_process.scope + end + def scope - @scope ||= context.current_feature.scopes.where(id: decidim_scope_id).first + @scope ||= process_scope || organization_scopes.where(id: decidim_scope_id).first end def category @category ||= context.current_feature.categories.where(id: decidim_category_id).first end