fixes #2599: Show more info when a BUR is approved/rejected

This commit is contained in:
r888888888
2016-06-10 15:44:09 -07:00
parent cab6768b4b
commit df9b53715f
2 changed files with 5 additions and 2 deletions

View File

@@ -14,6 +14,9 @@ class BulkUpdateRequestsController < ApplicationController
respond_with(@bulk_update_request, :location => bulk_update_requests_path)
end
def show
end
def edit
end

View File

@@ -137,7 +137,7 @@ class BulkUpdateRequest < ActiveRecord::Base
def update_forum_topic_for_approve
if forum_topic
forum_topic.posts.create(
:body => "\"The bulk update request ##{id} has been approved.\":/bulk_update_requests/#{id}"
:body => "\"The bulk update request ##{id} has been approved.\":/bulk_update_requests?search%5Bid%5D=#{id}"
)
end
end
@@ -145,7 +145,7 @@ class BulkUpdateRequest < ActiveRecord::Base
def update_forum_topic_for_reject
if forum_topic
forum_topic.posts.create(
:body => "\"The bulk update request ##{id} has been rejected.\":/bulk_update_requests/#{id}"
:body => "\"The bulk update request ##{id} has been rejected.\":/bulk_update_requests?search%5Bid%5D=#{id}"
)
end
end