aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/admin_request_controller.rb4
-rw-r--r--app/views/admin_request/show.html.erb3
2 files changed, 3 insertions, 4 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb
index b123a3467..87c07b3bd 100644
--- a/app/controllers/admin_request_controller.rb
+++ b/app/controllers/admin_request_controller.rb
@@ -118,8 +118,8 @@ class AdminRequestController < AdminController
end
# change user or public body of a request magically
- def move_request
- info_request = InfoRequest.find(params[:info_request_id])
+ def move
+ info_request = InfoRequest.find(params[:id])
if params[:commit] == 'Move request to user' && !params[:user_url_name].blank?
old_user = info_request.user
destination_user = User.find_by_url_name(params[:user_url_name])
diff --git a/app/views/admin_request/show.html.erb b/app/views/admin_request/show.html.erb
index f5620d769..735d71734 100644
--- a/app/views/admin_request/show.html.erb
+++ b/app/views/admin_request/show.html.erb
@@ -2,8 +2,7 @@
<h1><%=@title%></h1>
-<%= form_tag admin_request_move_request_path, { :class => "form form-horizontal" } do %>
- <%= hidden_field_tag 'info_request_id', @info_request.id %>
+<%= form_tag move_admin_request_path(@info_request), { :class => "form form-horizontal" } do %>
<div class="accordion" id="info_request">
<div class="accordion-group">
<div class="accordion-heading">