From d0127de6aad534cd7ec6244ca7f000aeed8a9756 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Tue, 26 Nov 2013 16:29:50 +0000 Subject: Add list of bodies batch request will be sent to. --- app/controllers/request_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/controllers/request_controller.rb') 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 -- cgit v1.2.3