From df9b53715f1d9614216d9b4e27e50c0474745bf5 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Fri, 10 Jun 2016 15:44:09 -0700 Subject: [PATCH] fixes #2599: Show more info when a BUR is approved/rejected --- app/controllers/bulk_update_requests_controller.rb | 3 +++ app/models/bulk_update_request.rb | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/controllers/bulk_update_requests_controller.rb b/app/controllers/bulk_update_requests_controller.rb index f46e66b92..052fca25c 100644 --- a/app/controllers/bulk_update_requests_controller.rb +++ b/app/controllers/bulk_update_requests_controller.rb @@ -14,6 +14,9 @@ class BulkUpdateRequestsController < ApplicationController respond_with(@bulk_update_request, :location => bulk_update_requests_path) end + def show + end + def edit end diff --git a/app/models/bulk_update_request.rb b/app/models/bulk_update_request.rb index a8e40b81a..45c4f6f45 100644 --- a/app/models/bulk_update_request.rb +++ b/app/models/bulk_update_request.rb @@ -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