aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/reports_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/reports_controller.rb')
-rw-r--r--app/controllers/reports_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb
index 070a91421..924eb0108 100644
--- a/app/controllers/reports_controller.rb
+++ b/app/controllers/reports_controller.rb
@@ -1,6 +1,6 @@
class ReportsController < ApplicationController
def create
- info_request = InfoRequest.find_by_url_title!(params[:url_title])
+ info_request = InfoRequest.find_by_url_title!(params[:request_id])
if !authenticated_user
flash[:notice] = _("You need to be logged in to report a request for administrator attention")
elsif info_request.attention_requested
@@ -13,7 +13,7 @@ class ReportsController < ApplicationController
end
def new
- @info_request = InfoRequest.find_by_url_title!(params[:url_title])
+ @info_request = InfoRequest.find_by_url_title!(params[:request_id])
if authenticated?(
:web => _("To report this request"),
:email => _("Then you can report the request '{{title}}'", :title => @info_request.title),