app/commands/decidim/assemblies/admin/update_assembly.rb in decidim-assemblies-0.18.1 vs app/commands/decidim/assemblies/admin/update_assembly.rb in decidim-assemblies-0.19.0

- old
+ new

@@ -22,10 +22,11 @@ # - :invalid if the form wasn't valid and we couldn't proceed. # # Returns nothing. def call return broadcast(:invalid) if form.invalid? + update_assembly link_participatory_processes(@assembly) if @assembly.valid? broadcast(:ok, @assembly) @@ -114,9 +115,10 @@ # Fixes Rails decrementing twice error when updating the parent to nil. # # Returns nothing. def update_children_count return unless @parent + Assembly.reset_counters(@parent.id, :children_count) end end end end