From 0aba4dcbcb19be2c2c66e40f051ae9c4e0283b6e Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Wed, 23 Oct 2013 11:19:13 +0100 Subject: Require at least one public body in the params. --- app/controllers/request_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/controllers/request_controller.rb') 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, -- cgit v1.2.3