diff options
author | Philip Arndt <git@p.arndt.io> | 2016-06-02 09:08:17 +1200 |
---|---|---|
committer | Philip Arndt <git@p.arndt.io> | 2016-06-02 09:08:17 +1200 |
commit | 23cc7c07b4248dd7e9ca161e4e673a7071636c80 (patch) | |
tree | da3281b50fd09a00d91b43accf4830616d046cb4 /app/controllers | |
parent | 193317eaf6e01a26bdf97125f98fba95c9269275 (diff) | |
parent | cb3c709ffac3db8281339b2c3db66bb847ee1c74 (diff) | |
download | refinerycms-blog-23cc7c07b4248dd7e9ca161e4e673a7071636c80.tar.gz refinerycms-blog-23cc7c07b4248dd7e9ca161e4e673a7071636c80.tar.bz2 refinerycms-blog-23cc7c07b4248dd7e9ca161e4e673a7071636c80.zip |
Merge pull request #448 from refinery/fix-447
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 |