diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-26 16:29:50 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-04 09:32:44 +0000 |
commit | d0127de6aad534cd7ec6244ca7f000aeed8a9756 (patch) | |
tree | 21077794fbe3494c1ab77ce6d9868948af8d018c /app/controllers/request_controller.rb | |
parent | 433b03ec0c4bbf0dd024e1c96fad62ac36e4ab4f (diff) |
Add list of bodies batch request will be sent to.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index bcee7d9f8..bef3575cc 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -209,6 +209,12 @@ class RequestController < ApplicationController end @batch = true + + I18n.with_locale(@locale) do + @public_bodies = PublicBody.where({:id => params[:public_body_ids]}). + includes(:translations). + order('public_body_translations.name').all + end if params[:submitted_new_request].nil? || params[:reedit] return render_new_compose(batch=true) end |