A platform for community discussion. Free, open, simple.
FIX: Guarantee order to correctly defer replies in review queue (#8426)
Roman Rizzi9eccfb7b5200
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rbindex dd4b78e7561..c28102530cd 100644--- a/app/controllers/posts_controller.rb+++ b/app/controllers/posts_controller.rb@@ -335,7 +335,7 @@ class PostsController < ApplicationControllerparams.require(:post_ids)agree_with_first_reply_flag = (params[:agree_with_first_reply_flag] || true).to_s == "true"- posts = Post.where(id: post_ids_including_replies)+ posts = Post.where(id: post_ids_including_replies).order(:id)raise Discourse::InvalidParameters.new(:post_ids) if posts.blank?# Make sure we can delete the posts