app/commands/decidim/assemblies/admin/update_assembly.rb in decidim-assemblies-0.20.1 vs app/commands/decidim/assemblies/admin/update_assembly.rb in decidim-assemblies-0.21.0

- old
+ new

@@ -82,11 +82,10 @@ meta_scope: form.meta_scope, show_statistics: form.show_statistics, purpose_of_action: form.purpose_of_action, composition: form.composition, assembly_type: form.assembly_type, - assembly_type_other: form.assembly_type_other, creation_date: form.creation_date, created_by: form.created_by, created_by_other: form.created_by_other, duration: form.duration, included_at: form.included_at, @@ -106,10 +105,10 @@ def participatory_processes(assembly) @participatory_processes ||= assembly.participatory_space_sibling_scope(:participatory_processes).where(id: @form.participatory_processes_ids) end def link_participatory_processes(assembly) - assembly.link_participatory_spaces_resources(participatory_processes(assembly), "included_participatory_processes") + assembly.link_participatory_space_resources(participatory_processes(assembly), "included_participatory_processes") end # Resets the children counter cache to its correct value using an SQL count query. # Fixes Rails decrementing twice error when updating the parent to nil. #