From cb3c709ffac3db8281339b2c3db66bb847ee1c74 Mon Sep 17 00:00:00 2001 From: Brice Sanchez Date: Wed, 29 Jul 2015 15:18:24 -0400 Subject: Fix the ability to remove all categories from a blog post --- app/controllers/refinery/blog/admin/posts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/refinery/blog') diff --git a/app/controllers/refinery/blog/admin/posts_controller.rb b/app/controllers/refinery/blog/admin/posts_controller.rb index aeb3c43..6bc8797 100644 --- a/app/controllers/refinery/blog/admin/posts_controller.rb +++ b/app/controllers/refinery/blog/admin/posts_controller.rb @@ -107,7 +107,7 @@ module Refinery end def check_category_ids - post_params[:category_ids] ||= [] + params[:post][:category_ids] ||= [] end end end -- cgit v1.2.3