From a5a20d30211865efd79956df5dc898f9ee1b1215 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Wed, 25 Feb 2015 16:20:43 +0000 Subject: [PATCH] Add a FIXME --- app/controllers/admin_public_body_categories_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/admin_public_body_categories_controller.rb b/app/controllers/admin_public_body_categories_controller.rb index 3b710e99ff..df5e53a5b2 100644 --- a/app/controllers/admin_public_body_categories_controller.rb +++ b/app/controllers/admin_public_body_categories_controller.rb @@ -83,6 +83,8 @@ def create @category = PublicBodyCategory.new(params[:public_body_category]) if @category.save + # FIXME: This can't handle failure (e.g. if a PublicBodyHeading + # doesn't exist) if params[:headings] params[:headings].values.each do |heading_id| PublicBodyHeading.find(heading_id).add_category(@category)