aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-10-23 11:19:13 +0100
committerLouise Crow <louise.crow@gmail.com>2013-12-04 09:32:41 +0000
commit0aba4dcbcb19be2c2c66e40f051ae9c4e0283b6e (patch)
tree2b532a7c458b06c5f0de02f9976b59f69e126ec0 /app/controllers/request_controller.rb
parentacb186466b20172a6804f86f8a082f148ec50fc6 (diff)
Require at least one public body in the params.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 52f62d58d..5a4ec58a0 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -184,9 +184,9 @@ class RequestController < ApplicationController
end
def new_batch
-
- # TODO: Check that have at least one public body in public_bodies param
-
+ if params[:public_body_ids].blank?
+ redirect_to select_authorities_path and return
+ end
# TODO: Pass public bodies list through new and preview template forms
# TODO: I don't think batch requesters should be subject to rate limits,