From fdffd3bdcb4c77f2cc423ad247511dc09050470e Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 7 Dec 2019 20:09:03 -0600 Subject: [PATCH] BURs: fix "This request will be attached to" link. ref: https://danbooru.donmai.us/forum_topics/9127?page=287#forum_post_161392 --- app/views/bulk_update_requests/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/bulk_update_requests/_form.html.erb b/app/views/bulk_update_requests/_form.html.erb index 0dc24adf1..2689e1592 100644 --- a/app/views/bulk_update_requests/_form.html.erb +++ b/app/views/bulk_update_requests/_form.html.erb @@ -10,7 +10,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}" %>. + <%= link_to "topic ##{@bulk_update_request.forum_topic_id}: #{@bulk_update_request.forum_topic.title}", @bulk_update_request.forum_topic %>. <%= 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