From ee96a696f0d169b93ce5254782d1c18483364765 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 28 Oct 2019 20:13:12 -0500 Subject: [PATCH] bulk update requests: fix attaching bur to existing topic. ref: https://danbooru.donmai.us/forum_topics/16411 --- app/views/bulk_update_requests/_form.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/bulk_update_requests/_form.html.erb b/app/views/bulk_update_requests/_form.html.erb index ba1fab5d5..0dc24adf1 100644 --- a/app/views/bulk_update_requests/_form.html.erb +++ b/app/views/bulk_update_requests/_form.html.erb @@ -11,6 +11,7 @@ <% if @bulk_update_request.new_record? && @bulk_update_request.forum_topic.present? %> This request will be attached to <%= link_to "topic ##{@bulk_update_request.forum_topic_id}: #{@bulk_update_request.forum_topic.title}" %>. + <%= f.input :forum_topic_id, as: :hidden, input_html: { value: params.dig(:bulk_update_request, :forum_topic_id) } %> <% elsif @bulk_update_request.new_record? && @bulk_update_request.forum_topic.blank? %> This request will create a new forum topic. To attach this request to an existing topic, find the forum topic and click "Request alias/implication" at the top of the page.