diff options
author | Brice Sanchez <brice@bisscomm.com> | 2015-07-29 15:18:24 -0400 |
---|---|---|
committer | Brice Sanchez <contact@brice-sanchez.com> | 2016-05-30 23:27:49 -0400 |
commit | cb3c709ffac3db8281339b2c3db66bb847ee1c74 (patch) | |
tree | 289f3a7c0dda7d83ef7192e07d071485a2866827 /app/controllers | |
parent | 4926254e1762681f467c617a682c8c5f5bda328c (diff) | |
download | refinerycms-blog-cb3c709ffac3db8281339b2c3db66bb847ee1c74.tar.gz refinerycms-blog-cb3c709ffac3db8281339b2c3db66bb847ee1c74.tar.bz2 refinerycms-blog-cb3c709ffac3db8281339b2c3db66bb847ee1c74.zip |
Fix the ability to remove all categories from a blog post
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/refinery/blog/admin/posts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |