aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/info_request_batch_controller.rb4
-rw-r--r--app/controllers/request_controller.rb2
2 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/info_request_batch_controller.rb b/app/controllers/info_request_batch_controller.rb
index 1e1030b53..f76f7abc2 100644
--- a/app/controllers/info_request_batch_controller.rb
+++ b/app/controllers/info_request_batch_controller.rb
@@ -2,6 +2,10 @@ class InfoRequestBatchController < ApplicationController
def show
@info_request_batch = InfoRequestBatch.find(params[:id])
+ @per_page = 25
+ @page = get_search_page_from_params
+ @info_requests = @info_request_batch.info_requests.all(:offset => (@page - 1) * @per_page,
+ :limit => @per_page)
end
end
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index b9be333c8..e516501d4 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -226,8 +226,6 @@ class RequestController < ApplicationController
return render_new_preview
end
- # TODO: give messages about bodies
- # that are no longer requestable
@info_request_batch = InfoRequestBatch.create!(:title => params[:info_request][:title],
:body => params[:outgoing_message][:body],
:user => authenticated_user)