app/commands/decidim/proposals/update_proposal.rb in decidim-proposals-0.18.1 vs app/commands/decidim/proposals/update_proposal.rb in decidim-proposals-0.19.0

- old
+ new

@@ -65,10 +65,15 @@ @proposal.add_coauthor(current_user, user_group: user_group) end end def update_proposal - @proposal.update!(attributes) + @proposal = Decidim.traceability.update!( + @proposal, + current_user, + attributes, + visibility: "public-only" + ) @proposal.coauthorships.clear @proposal.add_coauthor(current_user, user_group: user_group) end def attributes